563 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)
3545default(SeparatedSyntaxList<ParameterSyntax>),
4819private SeparatedSyntaxList<ParameterSyntax> ParseParameterList(
4831Func<LanguageParser, ParameterSyntax> parseElement = forExtensionOrUnion
4851LanguageParser @this, ref SyntaxToken open, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
4885private static bool CanReuseParameter(CSharp.Syntax.ParameterSyntax parameter, bool identifierIsOptional)
4929private ParameterSyntax ParseParameter(bool identifierIsOptional)
4931if (this.IsIncrementalAndFactoryContextMatches && CanReuseParameter(this.CurrentNode as Syntax.ParameterSyntax, identifierIsOptional))
4933return (ParameterSyntax)this.EatNode();
8794var parameter = (ParameterSyntax)separatedParameters[0];
13906LanguageParser @this, ref SyntaxToken openParen, SeparatedSyntaxListBuilder<ParameterSyntax> list, SyntaxKind expectedKind, SyntaxKind closeKind)
13939private 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)
740if (parameter is ParameterSyntax { Type: null, Identifier.Text: var parameterIdentifier })
865bool isDefault = syntax is ParameterSyntax { Default: { } };
883bool isNamed = syntax is ParameterSyntax parameterSyntax && parameterSyntax.Identifier.Kind() != SyntaxKind.None;
901Location loc = ((ParameterSyntax)syntax).Identifier.GetNextToken(includeZeroWidth: true).GetLocation(); //could be missing
924ParameterSyntax 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 (25)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Microsoft.CodeAnalysis.CSharp.Features (56)
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 (72)
CodeGeneration\CSharpSyntaxGenerator.cs (14)
354? SyntaxFactory.ParameterList([.. parameters.Cast<ParameterSyntax>()])
519? SyntaxFactory.BracketedParameterList([.. parameters.Cast<ParameterSyntax>()])
1194ParameterSyntax parameter => parameter.AttributeLists,
1205ParameterSyntax parameter => parameter.WithAttributeLists(attributeLists),
1659ParameterSyntax parameter => parameter.WithModifiers(modifiers),
1795private static SyntaxNode RemoveDefaultValue(ParameterSyntax parameter, bool removeDefaults)
2057ParameterSyntax parameter => parameter.Identifier.ValueText,
2087ParameterSyntax parameter => ReplaceWithTrivia(declaration, parameter.Identifier, id),
2126return ((ParameterSyntax)declaration).Type;
2159SyntaxKind.Parameter => ((ParameterSyntax)declaration).WithType((TypeSyntax)type),
2574return ((ParameterSyntax)declaration).Default;
2614return ((ParameterSyntax)declaration).WithDefault(initializer);
3652var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
3660=> 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 (39)