553 references to ParameterSyntax
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.App.Analyzers (7)
Microsoft.AspNetCore.App.CodeFixes (5)
Microsoft.CodeAnalysis.CSharp (106)
Parser\LanguageParser.cs (12)
3416default(SeparatedSyntaxList<ParameterSyntax>),
4664private SeparatedSyntaxList<ParameterSyntax> ParseParameterList(
4676Func<LanguageParser, ParameterSyntax> parseElement = forExtension
4697LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
4729private static bool CanReuseParameter(CSharp.Syntax.ParameterSyntax parameter, bool allowOptionalIdentifier)
4773private ParameterSyntax ParseParameter(bool allowOptionalIdentifier)
4775if (this.IsIncrementalAndFactoryContextMatches && CanReuseParameter(this.CurrentNode as Syntax.ParameterSyntax, allowOptionalIdentifier))
4777return (ParameterSyntax)this.EatNode();
8560var parameter = (ParameterSyntax)separatedParameters[0];
13537LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13570private ParameterSyntax ParseLambdaParameter()
Symbols\Source\ParameterHelpers.cs (9)
30return MakeParameters<ParameterSyntax, SourceParameterSymbol, Symbol>(
42ParameterSyntax syntax, RefKind refKind, int ordinal,
71ParameterSyntax syntax, RefKind refKind, int ordinal,
276if (parameterSyntax is ParameterSyntax concreteParam)
731if (parameter is ParameterSyntax { Type: null, Identifier.Text: var parameterIdentifier })
839bool isDefault = syntax is ParameterSyntax { Default: { } };
857bool isNamed = syntax is ParameterSyntax parameterSyntax && parameterSyntax.Identifier.Kind() != SyntaxKind.None;
875Location loc = ((ParameterSyntax)syntax).Identifier.GetNextToken(includeZeroWidth: true).GetLocation(); //could be missing
898ParameterSyntax parameterSyntax,
Syntax\SimpleLambdaExpressionSyntax.cs (9)
16public SimpleLambdaExpressionSyntax Update(SyntaxToken asyncKeyword, ParameterSyntax parameter, SyntaxToken arrowToken, CSharpSyntaxNode body)
30public SimpleLambdaExpressionSyntax Update(SyntaxToken asyncKeyword, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
33public SimpleLambdaExpressionSyntax Update(SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
43public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, BlockSyntax? block, ExpressionSyntax? expressionBody)
47public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(ParameterSyntax parameter)
50public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxToken asyncKeyword, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
53public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(ParameterSyntax parameter, BlockSyntax? block, ExpressionSyntax? expressionBody)
56public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
59public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxTokenList modifiers, ParameterSyntax parameter, BlockSyntax? block, ExpressionSyntax? expressionBody)
Microsoft.CodeAnalysis.CSharp.CodeStyle (28)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (24)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
Microsoft.CodeAnalysis.CSharp.Features (55)
InitializeParameter\CSharpAddParameterCheckCodeRefactoringProvider.cs (1)
25ParameterSyntax,
InitializeParameter\CSharpInitializeMemberFromParameterCodeRefactoringProvider.cs (1)
21ParameterSyntax,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (55)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (41)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (71)
CodeGeneration\CSharpSyntaxGenerator.cs (14)
357? SyntaxFactory.ParameterList([.. parameters.Cast<ParameterSyntax>()])
521? SyntaxFactory.BracketedParameterList([.. parameters.Cast<ParameterSyntax>()])
1209ParameterSyntax parameter => parameter.AttributeLists,
1220ParameterSyntax parameter => parameter.WithAttributeLists(attributeLists),
1665ParameterSyntax parameter => parameter.WithModifiers(modifiers),
1801private static SyntaxNode RemoveDefaultValue(ParameterSyntax parameter, bool removeDefaults)
2063ParameterSyntax parameter => parameter.Identifier.ValueText,
2093ParameterSyntax parameter => ReplaceWithTrivia(declaration, parameter.Identifier, id),
2132return ((ParameterSyntax)declaration).Type;
2165SyntaxKind.Parameter => ((ParameterSyntax)declaration).WithType((TypeSyntax)type),
2580return ((ParameterSyntax)declaration).Default;
2620return ((ParameterSyntax)declaration).WithDefault(initializer);
3656var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
3664=> node is ParameterSyntax { Type: null, Default: null, Modifiers.Count: 0 };
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (3)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Interop.SourceGeneration (5)
Microsoft.ML.InternalCodeAnalyzer (5)
Microsoft.VisualStudio.LanguageServices.CSharp (33)
Roslyn.Diagnostics.CSharp.Analyzers (38)