31 references to ParamsKeyword
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
170previous.IsKind(SyntaxKind.ParamsKeyword) ||
Microsoft.CodeAnalysis.CSharp (15)
BoundTree\UnboundLambda.cs (1)
672else if (type.IsRefLikeOrAllowsRefLikeType() && ParameterSyntax(i)?.Modifiers.Any(SyntaxKind.ParamsKeyword) == true)
Parser\LanguageParser.cs (4)
4742case SyntaxKind.ParamsKeyword: 8472if (parameter.Modifiers[i].Kind == SyntaxKind.ParamsKeyword) 12207if (this.PeekToken(1).Kind == SyntaxKind.ParamsKeyword) 13416case SyntaxKind.ParamsKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
834AddKeyword(SyntaxKind.ParamsKeyword);
Symbols\Source\LambdaSymbol.cs (1)
381var isParams = paramSyntax?.Modifiers.Any(static m => m.IsKind(SyntaxKind.ParamsKeyword)) ?? false;
Symbols\Source\ParameterHelpers.cs (4)
526case SyntaxKind.ParamsKeyword when !parsingFunctionPointerParams: 618case SyntaxKind.ParamsKeyword when parsingFunctionPointerParams: 752else if (paramsKeyword.Kind() == SyntaxKind.ParamsKeyword) 955case SyntaxKind.ParamsKeyword:
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1540if (IsParams && ParameterSyntax?.Modifiers.Any(SyntaxKind.ParamsKeyword) == true) 1686diagnostics.Add(ErrorCode.ERR_ParamsMustBeCollection, ParameterSyntax.Modifiers.First(static m => m.IsKind(SyntaxKind.ParamsKeyword)).GetLocation());
Syntax\SyntaxKindFacts.cs (2)
975return SyntaxKind.ParamsKeyword; 1623case SyntaxKind.ParamsKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
64public static readonly SyntaxToken ParamsKeyword = Token(SyntaxKind.ParamsKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1107if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\ParamsKeywordRecommender.cs (1)
13: base(SyntaxKind.ParamsKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (2)
2348Assert.Equal(SyntaxKind.ParamsKeyword, ds.ParameterList.Parameters[0].Modifiers[0].Kind()); 3155TestClassMethodWithParameterModifier(SyntaxKind.ParamsKeyword);
Parsing\DeclarationScopeParsingTests.cs (2)
1322N(SyntaxKind.ParamsKeyword); 1366N(SyntaxKind.ParamsKeyword);
Parsing\FunctionPointerTests.cs (1)
3325N(SyntaxKind.ParamsKeyword);
Parsing\ScriptParsingTests.cs (2)
3782N(SyntaxKind.ParamsKeyword); 3922N(SyntaxKind.ParamsKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
64public static readonly SyntaxToken ParamsKeyword = Token(SyntaxKind.ParamsKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1107if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
1880else if (modifiers.Any(SyntaxKind.ParamsKeyword))
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
128else if (parameter.Modifiers.Any(SyntaxKind.ParamsKeyword))
CodeModel\ParameterFlagsExtensions.cs (1)
28case SyntaxKind.ParamsKeyword: