61 references to Parameter
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
187else if (container.IsKind(SyntaxKind.Parameter)) 326if (current.IsKind(SyntaxKind.Parameter))
Microsoft.CodeAnalysis.CSharp (16)
_generated\1\Syntax.xml.Internal.Generated.cs (2)
32713return new ParameterSyntax(SyntaxKind.Parameter, attributeLists.Node, modifiers.Node, type, identifier, @default, this.context); 38112return new ParameterSyntax(SyntaxKind.Parameter, attributeLists.Node, modifiers.Node, type, identifier, @default);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
13804/// <item><description><see cref="SyntaxKind.Parameter"/></description></item>
Compilation\CSharpSemanticModel.cs (1)
5180case SyntaxKind.Parameter:
Compilation\InitializerSemanticModel.cs (2)
88case SyntaxKind.Parameter: 129case SyntaxKind.Parameter:
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
150var attributeOrParameter = node.FirstAncestorOrSelf<SyntaxNode>(static n => n.Kind() is SyntaxKind.Attribute or SyntaxKind.Parameter);
Compilation\SyntaxTreeSemanticModel.cs (3)
955case SyntaxKind.Parameter: 1146case SyntaxKind.Parameter: 1292(node.Kind() == SyntaxKind.Attribute) || (node.Kind() == SyntaxKind.Parameter);
Lowering\Instrumentation\DebugInfoInjector.cs (1)
134if (syntax.IsKind(SyntaxKind.Parameter))
Lowering\LocalRewriter\LocalRewriter.cs (1)
874if (syntax.IsKind(SyntaxKind.Parameter))
Symbols\FieldOrPropertyInitializer.cs (1)
31Debug.Assert(((syntax.IsKind(SyntaxKind.EqualsValueClause) || syntax.IsKind(SyntaxKind.Parameter)) && fieldOpt != null) || syntax is StatementSyntax);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
56Debug.Assert((syntaxRef == null) || (syntaxRef.GetSyntax().IsKind(SyntaxKind.Parameter)));
Syntax\SyntaxExtensions.cs (1)
239case SyntaxKind.Parameter:
Syntax\SyntaxFacts.cs (1)
159case Parameter:
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\CSharpRegisterActionAnalyzer.cs (1)
54protected override SyntaxKind ParameterSyntaxKind => SyntaxKind.Parameter;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
24SyntaxKind.Parameter,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
273if (type.IsParentKind(SyntaxKind.Parameter) && type.Parent.IsParentKind(SyntaxKind.ParameterList))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
340previousToken.Parent.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
169public int Parameter => (int)SyntaxKind.Parameter;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
842case SyntaxKind.Parameter:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1273else if (token.IsKind(SyntaxKind.ScopedKeyword) && token.Parent.IsKind(SyntaxKind.Parameter)) 1277else if (token.IsKind(SyntaxKind.IdentifierToken) && token is { Text: "scoped", Parent: IdentifierNameSyntax scopedIdentifierName } && scopedIdentifierName.Parent.IsKind(SyntaxKind.Parameter)) 2110if (equalsValue.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1224if (equalsValue.IsParentKind(SyntaxKind.Parameter) &&
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
303var parameterSyntax = context.LeftToken.GetAncestor(n => n.IsKind(SyntaxKind.Parameter)) as ParameterSyntax;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
124case SyntaxKind.Parameter: 1741case SyntaxKind.Parameter: 2122case SyntaxKind.Parameter:
EditAndContinue\SyntaxComparer.cs (3)
279case SyntaxKind.Parameter: 913case SyntaxKind.Parameter: 1504case SyntaxKind.Parameter:
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
51=> expression.GetAncestorOrThis<EqualsValueClauseSyntax>().IsParentKind(SyntaxKind.Parameter);
src\roslyn\src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
24SyntaxKind.Parameter,
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
1600case SyntaxKind.Parameter: 1924case SyntaxKind.Parameter: 2125case SyntaxKind.Parameter: 2159SyntaxKind.Parameter => ((ParameterSyntax)declaration).WithType((TypeSyntax)type), 2573case SyntaxKind.Parameter: 2613case SyntaxKind.Parameter:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
273if (type.IsParentKind(SyntaxKind.Parameter) && type.Parent.IsParentKind(SyntaxKind.ParameterList))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
340previousToken.Parent.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
169public int Parameter => (int)SyntaxKind.Parameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
842case SyntaxKind.Parameter:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1273else if (token.IsKind(SyntaxKind.ScopedKeyword) && token.Parent.IsKind(SyntaxKind.Parameter)) 1277else if (token.IsKind(SyntaxKind.IdentifierToken) && token is { Text: "scoped", Parent: IdentifierNameSyntax scopedIdentifierName } && scopedIdentifierName.Parent.IsKind(SyntaxKind.Parameter)) 2110if (equalsValue.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1224if (equalsValue.IsParentKind(SyntaxKind.Parameter) &&
Microsoft.ML.InternalCodeAnalyzer (1)
ParameterVariableNameAnalyzer.cs (1)
37context.RegisterSyntaxNodeAction(AnalyzeParameter, SyntaxKind.Parameter);
Roslyn.Diagnostics.CSharp.Analyzers (9)
CSharpAvoidOptSuffixForNullableEnableCode.cs (1)
52}, SyntaxKind.Parameter);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
273if (type.IsParentKind(SyntaxKind.Parameter) && type.Parent.IsParentKind(SyntaxKind.ParameterList))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
340previousToken.Parent.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
169public int Parameter => (int)SyntaxKind.Parameter;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
842case SyntaxKind.Parameter:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1273else if (token.IsKind(SyntaxKind.ScopedKeyword) && token.Parent.IsKind(SyntaxKind.Parameter)) 1277else if (token.IsKind(SyntaxKind.IdentifierToken) && token is { Text: "scoped", Parent: IdentifierNameSyntax scopedIdentifierName } && scopedIdentifierName.Parent.IsKind(SyntaxKind.Parameter)) 2110if (equalsValue.IsParentKind(SyntaxKind.Parameter))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1224if (equalsValue.IsParentKind(SyntaxKind.Parameter) &&