499 references to RefKeyword
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
169
previous.IsKind(SyntaxKind.
RefKeyword
) ||
Microsoft.CodeAnalysis.CSharp (52)
Declarations\DeclarationTreeBuilder.cs (1)
763
else if (modifier.IsKind(SyntaxKind.
RefKeyword
) && kind is DeclarationKind.Struct or DeclarationKind.RecordStruct)
Parser\DocumentationCommentParser.cs (3)
1232
case SyntaxKind.
RefKeyword
:
1253
case SyntaxKind.
RefKeyword
:
1263
if (refKindOpt.Kind != SyntaxKind.
RefKeyword
)
Parser\LanguageParser.cs (27)
1330
case SyntaxKind.
RefKeyword
:
2212
return (this.CurrentToken.ContextualKind == SyntaxKind.AllowsKeyword && PeekToken(1).Kind == SyntaxKind.
RefKeyword
) || this.IsTrueIdentifier();
2265
PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
2275
this.EatToken(SyntaxKind.
RefKeyword
),
2278
if (this.CurrentToken.Kind == SyntaxKind.CommaToken && PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
2347
case SyntaxKind.
RefKeyword
:
4143
var refKeyword = this.CurrentToken.Kind == SyntaxKind.
RefKeyword
&& !this.IsPossibleLambdaExpression(Precedence.Expression)
4721
case SyntaxKind.
RefKeyword
:
4738
if (this.CurrentToken.Kind is SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4755
while (this.CurrentToken.Kind is (SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword))
5307
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.Kind == SyntaxKind.
RefKeyword
&& !this.IsPossibleLambdaExpression(Precedence.Expression)
6859
if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
7228
if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
8160
if (tk == SyntaxKind.
RefKeyword
||
8308
if (tk == SyntaxKind.
RefKeyword
)
8819
case SyntaxKind.
RefKeyword
:
9200
if (this.PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
9211
else if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
10119
if (this.CurrentToken.Kind is not (SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword))
10628
case SyntaxKind.
RefKeyword
:
10859
return SyntaxFacts.IsPrefixUnaryExpression(kind) && kind is not SyntaxKind.
RefKeyword
and not SyntaxKind.OutKeyword;
11132
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.Kind == SyntaxKind.
RefKeyword
&&
11551
case SyntaxKind.
RefKeyword
:
11993
case SyntaxKind.
RefKeyword
:
12013
!(this.CurrentToken.Kind == SyntaxKind.
RefKeyword
&&
13259
case SyntaxKind.
RefKeyword
:
13394
case SyntaxKind.
RefKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (1)
251
AddKeyword(SyntaxKind.
RefKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (4)
1097
AddKeyword(SyntaxKind.
RefKeyword
);
1111
AddKeyword(SyntaxKind.
RefKeyword
);
1137
AddKeyword(SyntaxKind.
RefKeyword
);
1145
AddKeyword(SyntaxKind.
RefKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
749
AddKeyword(SyntaxKind.
RefKeyword
);
945
AddKeyword(SyntaxKind.
RefKeyword
);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
44
case SyntaxKind.
RefKeyword
when refKind == RefKind.None:
58
case SyntaxKind.
RefKeyword
:
Symbols\RefKindExtensions.cs (1)
25
case SyntaxKind.
RefKeyword
:
Symbols\Source\ModifierUtils.cs (2)
320
return SyntaxFacts.GetText(SyntaxKind.
RefKeyword
);
372
case SyntaxKind.
RefKeyword
:
Symbols\Source\ParameterHelpers.cs (7)
471
case SyntaxKind.
RefKeyword
:
483
addERR_ParamsCantBeWithModifier(diagnostics, modifier, SyntaxKind.
RefKeyword
);
514
addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.
RefKeyword
);
541
addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.
RefKeyword
);
580
addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.
RefKeyword
);
607
else if (previousModifier?.Kind() != SyntaxKind.
RefKeyword
)
941
case SyntaxKind.
RefKeyword
:
Syntax\SyntaxKindFacts.cs (2)
965
return SyntaxKind.
RefKeyword
;
1613
case SyntaxKind.
RefKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
75
public static readonly SyntaxToken RefKeyword = Token(SyntaxKind.
RefKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
27
SyntaxKind.
RefKeyword
=> RefKind.Ref,
87
if (argument.RefOrOutKeyword.Kind() == SyntaxKind.
RefKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
214
ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.
RefKeyword
})
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
98
case SyntaxKind.
RefKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
141
SyntaxKind.
RefKeyword
=> DeclarationModifiers.Ref,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
730
syntaxTree.IsAfterKeyword(position, SyntaxKind.
RefKeyword
, cancellationToken) ||
1107
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
1287
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
1795
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.ReadOnlyKeyword)
2445
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
24
SyntaxKind.
RefKeyword
Microsoft.CodeAnalysis.CSharp.Features (15)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
152
return token is (kind: SyntaxKind.CommaToken or SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword);
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
145
if (prevToken.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.ReadOnlyKeyword && prevToken.Parent.IsKind(SyntaxKind.RefType))
Completion\KeywordRecommenders\AbstractSpecialTypePreselectingKeywordRecommender.cs (2)
43
if (!syntaxTree.IsAfterKeyword(position, SyntaxKind.
RefKeyword
, cancellationToken) &&
57
if (token.Kind() != SyntaxKind.
RefKeyword
)
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
72
=> context.TargetToken.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.ReadOnlyKeyword &&
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
47
=> context.TargetToken.IsKind(SyntaxKind.
RefKeyword
) &&
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
18
: base(SyntaxKind.
RefKeyword
)
Completion\KeywordRecommenders\StructKeywordRecommender.cs (2)
22
SyntaxKind.
RefKeyword
,
62
if (token.Kind() == SyntaxKind.
RefKeyword
&&
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
67
SyntaxKind.
RefKeyword
or
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
257
? SyntaxKind.
RefKeyword
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (2)
253
result.Add(Keyword(SyntaxKind.
RefKeyword
));
258
result.Add(Keyword(SyntaxKind.
RefKeyword
));
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
300
parts.Add(Keyword(SyntaxKind.
RefKeyword
));
Snippets\CSharpStructSnippetProvider.cs (1)
32
SyntaxKind.
RefKeyword
,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\CrefTests.cs (2)
6748
Assert.Equal(SyntaxKind.
RefKeyword
, parameter.RefKindKeyword.Kind());
6898
Assert.Equal(SyntaxKind.
RefKeyword
, parameter.RefKindKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (392)
Generated\Syntax.Test.xml.Generated.cs (12)
68
=> InternalSyntaxFactory.RefType(InternalSyntaxFactory.Token(SyntaxKind.
RefKeyword
), null, GenerateIdentifierName());
182
=> InternalSyntaxFactory.RefExpression(InternalSyntaxFactory.Token(SyntaxKind.
RefKeyword
), GenerateIdentifierName());
551
=> InternalSyntaxFactory.RefStructConstraint(InternalSyntaxFactory.Token(SyntaxKind.
RefKeyword
), InternalSyntaxFactory.Token(SyntaxKind.StructKeyword));
955
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind);
1406
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind);
2998
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind);
10284
=> SyntaxFactory.RefType(SyntaxFactory.Token(SyntaxKind.
RefKeyword
), default(SyntaxToken), GenerateIdentifierName());
10398
=> SyntaxFactory.RefExpression(SyntaxFactory.Token(SyntaxKind.
RefKeyword
), GenerateIdentifierName());
10767
=> SyntaxFactory.RefStructConstraint(SyntaxFactory.Token(SyntaxKind.
RefKeyword
), SyntaxFactory.Token(SyntaxKind.StructKeyword));
11171
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind());
11622
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind());
13214
Assert.Equal(SyntaxKind.
RefKeyword
, node.RefKeyword.Kind());
LexicalAndXml\CrefLexerTests.cs (4)
44
AssertTokens("ref", Token(SyntaxKind.
RefKeyword
));
53
AssertTokens("ref", Token(SyntaxKind.
RefKeyword
, "ref", "ref"));
62
AssertTokens("ref", Token(SyntaxKind.
RefKeyword
, "ref", "ref"));
371
Token(SyntaxKind.
RefKeyword
),
Parsing\AllowsConstraintParsing.cs (31)
59
N(SyntaxKind.
RefKeyword
);
168
N(SyntaxKind.
RefKeyword
);
397
N(SyntaxKind.
RefKeyword
);
454
N(SyntaxKind.
RefKeyword
);
460
N(SyntaxKind.
RefKeyword
);
509
N(SyntaxKind.
RefKeyword
);
567
N(SyntaxKind.
RefKeyword
);
573
N(SyntaxKind.
RefKeyword
);
622
N(SyntaxKind.
RefKeyword
);
632
N(SyntaxKind.
RefKeyword
);
685
N(SyntaxKind.
RefKeyword
);
743
N(SyntaxKind.
RefKeyword
);
801
N(SyntaxKind.
RefKeyword
);
877
N(SyntaxKind.
RefKeyword
);
944
N(SyntaxKind.
RefKeyword
);
1016
N(SyntaxKind.
RefKeyword
);
1083
N(SyntaxKind.
RefKeyword
);
1141
N(SyntaxKind.
RefKeyword
);
1195
N(SyntaxKind.
RefKeyword
);
1249
N(SyntaxKind.
RefKeyword
);
1306
N(SyntaxKind.
RefKeyword
);
1363
N(SyntaxKind.
RefKeyword
);
1420
N(SyntaxKind.
RefKeyword
);
1476
N(SyntaxKind.
RefKeyword
);
1545
N(SyntaxKind.
RefKeyword
);
1594
N(SyntaxKind.
RefKeyword
);
1648
N(SyntaxKind.
RefKeyword
);
1702
N(SyntaxKind.
RefKeyword
);
1759
N(SyntaxKind.
RefKeyword
);
1816
N(SyntaxKind.
RefKeyword
);
1873
N(SyntaxKind.
RefKeyword
);
Parsing\AnonymousFunctionParsingTests.cs (1)
990
N(SyntaxKind.
RefKeyword
);
Parsing\CrefParsingTests.cs (7)
1308
N(SyntaxKind.
RefKeyword
);
1344
N(SyntaxKind.
RefKeyword
);
1372
N(SyntaxKind.
RefKeyword
);
1416
N(SyntaxKind.
RefKeyword
);
1453
N(SyntaxKind.
RefKeyword
);
1615
N(SyntaxKind.
RefKeyword
);
1869
N(SyntaxKind.
RefKeyword
);
Parsing\DeclarationExpressionTests.cs (7)
284
N(SyntaxKind.
RefKeyword
);
313
N(SyntaxKind.
RefKeyword
);
322
N(SyntaxKind.
RefKeyword
);
347
N(SyntaxKind.
RefKeyword
);
361
N(SyntaxKind.
RefKeyword
);
379
N(SyntaxKind.
RefKeyword
);
388
N(SyntaxKind.
RefKeyword
);
Parsing\DeclarationParsingTests.cs (3)
2276
Assert.Equal(SyntaxKind.
RefKeyword
, ds.ParameterList.Parameters[0].Modifiers[0].Kind());
2862
Assert.Equal(SyntaxKind.
RefKeyword
, rt.RefKeyword.Kind());
3153
TestClassMethodWithParameterModifier(SyntaxKind.
RefKeyword
);
Parsing\DeclarationScopeParsingTests.cs (174)
47
N(SyntaxKind.
RefKeyword
);
96
N(SyntaxKind.
RefKeyword
);
175
N(SyntaxKind.
RefKeyword
);
288
N(SyntaxKind.
RefKeyword
);
349
N(SyntaxKind.
RefKeyword
);
399
N(SyntaxKind.
RefKeyword
);
441
N(SyntaxKind.
RefKeyword
);
470
N(SyntaxKind.
RefKeyword
);
525
N(SyntaxKind.
RefKeyword
);
565
N(SyntaxKind.
RefKeyword
);
629
N(SyntaxKind.
RefKeyword
);
639
N(SyntaxKind.
RefKeyword
);
659
N(SyntaxKind.
RefKeyword
);
714
N(SyntaxKind.
RefKeyword
);
815
N(SyntaxKind.
RefKeyword
);
871
N(SyntaxKind.
RefKeyword
);
913
N(SyntaxKind.
RefKeyword
);
957
N(SyntaxKind.
RefKeyword
);
1020
N(SyntaxKind.
RefKeyword
);
1117
N(SyntaxKind.
RefKeyword
);
1181
N(SyntaxKind.
RefKeyword
);
1242
N(SyntaxKind.
RefKeyword
);
1459
N(SyntaxKind.
RefKeyword
);
1478
N(SyntaxKind.
RefKeyword
);
1498
N(SyntaxKind.
RefKeyword
);
1574
N(SyntaxKind.
RefKeyword
);
1667
N(SyntaxKind.
RefKeyword
);
1690
N(SyntaxKind.
RefKeyword
);
1774
N(SyntaxKind.
RefKeyword
);
1808
N(SyntaxKind.
RefKeyword
);
1893
N(SyntaxKind.
RefKeyword
);
1933
N(SyntaxKind.
RefKeyword
);
1986
N(SyntaxKind.
RefKeyword
);
2035
N(SyntaxKind.
RefKeyword
);
2061
N(SyntaxKind.
RefKeyword
);
2121
N(SyntaxKind.
RefKeyword
);
2236
N(SyntaxKind.
RefKeyword
);
2266
N(SyntaxKind.
RefKeyword
);
2342
N(SyntaxKind.
RefKeyword
);
2372
N(SyntaxKind.
RefKeyword
);
2447
N(SyntaxKind.
RefKeyword
);
2473
N(SyntaxKind.
RefKeyword
);
2569
N(SyntaxKind.
RefKeyword
);
2591
N(SyntaxKind.
RefKeyword
);
2657
N(SyntaxKind.
RefKeyword
);
2701
N(SyntaxKind.
RefKeyword
);
2743
N(SyntaxKind.
RefKeyword
);
2792
N(SyntaxKind.
RefKeyword
);
2818
N(SyntaxKind.
RefKeyword
);
2878
N(SyntaxKind.
RefKeyword
);
2917
N(SyntaxKind.
RefKeyword
);
3071
N(SyntaxKind.
RefKeyword
);
3225
N(SyntaxKind.
RefKeyword
);
3395
N(SyntaxKind.
RefKeyword
);
3451
N(SyntaxKind.
RefKeyword
);
3574
N(SyntaxKind.
RefKeyword
);
3654
N(SyntaxKind.
RefKeyword
);
3730
N(SyntaxKind.
RefKeyword
);
3797
N(SyntaxKind.
RefKeyword
);
3884
N(SyntaxKind.
RefKeyword
);
3968
N(SyntaxKind.
RefKeyword
);
4179
N(SyntaxKind.
RefKeyword
);
4272
N(SyntaxKind.
RefKeyword
);
4327
N(SyntaxKind.
RefKeyword
);
4421
N(SyntaxKind.
RefKeyword
);
4548
N(SyntaxKind.
RefKeyword
);
4623
N(SyntaxKind.
RefKeyword
);
4916
N(SyntaxKind.
RefKeyword
);
4991
N(SyntaxKind.
RefKeyword
);
5131
N(SyntaxKind.
RefKeyword
);
5426
N(SyntaxKind.
RefKeyword
);
5495
N(SyntaxKind.
RefKeyword
);
5978
N(SyntaxKind.
RefKeyword
);
6045
N(SyntaxKind.
RefKeyword
);
6116
N(SyntaxKind.
RefKeyword
);
6180
N(SyntaxKind.
RefKeyword
);
6253
N(SyntaxKind.
RefKeyword
);
6340
N(SyntaxKind.
RefKeyword
);
6540
N(SyntaxKind.
RefKeyword
);
6611
N(SyntaxKind.
RefKeyword
);
6672
N(SyntaxKind.
RefKeyword
);
6752
N(SyntaxKind.
RefKeyword
);
6880
N(SyntaxKind.
RefKeyword
);
6940
N(SyntaxKind.
RefKeyword
);
7173
N(SyntaxKind.
RefKeyword
);
7233
N(SyntaxKind.
RefKeyword
);
7343
N(SyntaxKind.
RefKeyword
);
7547
N(SyntaxKind.
RefKeyword
);
7700
N(SyntaxKind.
RefKeyword
);
7760
N(SyntaxKind.
RefKeyword
);
7907
N(SyntaxKind.
RefKeyword
);
8291
N(SyntaxKind.
RefKeyword
);
8330
N(SyntaxKind.
RefKeyword
);
8405
N(SyntaxKind.
RefKeyword
);
8453
N(SyntaxKind.
RefKeyword
);
8498
N(SyntaxKind.
RefKeyword
);
8539
N(SyntaxKind.
RefKeyword
);
8588
N(SyntaxKind.
RefKeyword
);
8637
N(SyntaxKind.
RefKeyword
);
8772
N(SyntaxKind.
RefKeyword
);
8830
N(SyntaxKind.
RefKeyword
);
8874
N(SyntaxKind.
RefKeyword
);
8942
N(SyntaxKind.
RefKeyword
);
9032
N(SyntaxKind.
RefKeyword
);
9077
N(SyntaxKind.
RefKeyword
);
9299
N(SyntaxKind.
RefKeyword
);
9345
N(SyntaxKind.
RefKeyword
);
9425
N(SyntaxKind.
RefKeyword
);
9562
N(SyntaxKind.
RefKeyword
);
9615
N(SyntaxKind.
RefKeyword
);
9625
N(SyntaxKind.
RefKeyword
);
9703
N(SyntaxKind.
RefKeyword
);
9763
N(SyntaxKind.
RefKeyword
);
9804
N(SyntaxKind.
RefKeyword
);
9867
N(SyntaxKind.
RefKeyword
);
9941
N(SyntaxKind.
RefKeyword
);
10087
N(SyntaxKind.
RefKeyword
);
10153
N(SyntaxKind.
RefKeyword
);
10192
N(SyntaxKind.
RefKeyword
);
10258
N(SyntaxKind.
RefKeyword
);
10343
N(SyntaxKind.
RefKeyword
);
10385
N(SyntaxKind.
RefKeyword
);
10546
N(SyntaxKind.
RefKeyword
);
10588
N(SyntaxKind.
RefKeyword
);
10662
N(SyntaxKind.
RefKeyword
);
11051
N(SyntaxKind.
RefKeyword
);
11161
N(SyntaxKind.
RefKeyword
);
11418
N(SyntaxKind.
RefKeyword
);
11487
N(SyntaxKind.
RefKeyword
);
11577
N(SyntaxKind.
RefKeyword
);
11772
N(SyntaxKind.
RefKeyword
);
11856
N(SyntaxKind.
RefKeyword
);
11934
N(SyntaxKind.
RefKeyword
);
11958
N(SyntaxKind.
RefKeyword
);
12044
N(SyntaxKind.
RefKeyword
);
12098
N(SyntaxKind.
RefKeyword
);
12143
N(SyntaxKind.
RefKeyword
);
12228
N(SyntaxKind.
RefKeyword
);
12281
N(SyntaxKind.
RefKeyword
);
12343
N(SyntaxKind.
RefKeyword
);
12400
N(SyntaxKind.
RefKeyword
);
12460
N(SyntaxKind.
RefKeyword
);
12527
N(SyntaxKind.
RefKeyword
);
12681
N(SyntaxKind.
RefKeyword
);
12741
N(SyntaxKind.
RefKeyword
);
12787
N(SyntaxKind.
RefKeyword
);
12848
N(SyntaxKind.
RefKeyword
);
12941
N(SyntaxKind.
RefKeyword
);
12991
N(SyntaxKind.
RefKeyword
);
13238
N(SyntaxKind.
RefKeyword
);
13288
N(SyntaxKind.
RefKeyword
);
13378
N(SyntaxKind.
RefKeyword
);
13545
N(SyntaxKind.
RefKeyword
);
13558
N(SyntaxKind.
RefKeyword
);
13607
N(SyntaxKind.
RefKeyword
);
13677
N(SyntaxKind.
RefKeyword
);
13703
N(SyntaxKind.
RefKeyword
);
13763
N(SyntaxKind.
RefKeyword
);
13876
N(SyntaxKind.
RefKeyword
);
13899
N(SyntaxKind.
RefKeyword
);
13975
N(SyntaxKind.
RefKeyword
);
14034
N(SyntaxKind.
RefKeyword
);
14043
N(SyntaxKind.
RefKeyword
);
14095
N(SyntaxKind.
RefKeyword
);
14163
N(SyntaxKind.
RefKeyword
);
14172
N(SyntaxKind.
RefKeyword
);
14288
N(SyntaxKind.
RefKeyword
);
14329
N(SyntaxKind.
RefKeyword
);
14371
N(SyntaxKind.
RefKeyword
);
14433
N(SyntaxKind.
RefKeyword
);
14501
N(SyntaxKind.
RefKeyword
);
14525
N(SyntaxKind.
RefKeyword
);
14821
N(SyntaxKind.
RefKeyword
);
14907
N(SyntaxKind.
RefKeyword
);
Parsing\ExpressionParsingTests.cs (12)
986
Assert.Equal(SyntaxKind.
RefKeyword
, cs.ArgumentList.Arguments[0].RefOrOutKeyword.Kind());
1082
Assert.Equal(SyntaxKind.
RefKeyword
, ea.ArgumentList.Arguments[0].RefOrOutKeyword.Kind());
2243
Assert.Equal(SyntaxKind.
RefKeyword
, ps.Modifiers[0].Kind());
6035
N(SyntaxKind.
RefKeyword
);
6066
N(SyntaxKind.
RefKeyword
);
6096
N(SyntaxKind.
RefKeyword
);
6129
N(SyntaxKind.
RefKeyword
);
6169
N(SyntaxKind.
RefKeyword
);
6203
N(SyntaxKind.
RefKeyword
);
6247
N(SyntaxKind.
RefKeyword
);
6298
N(SyntaxKind.
RefKeyword
);
6371
N(SyntaxKind.
RefKeyword
);
Parsing\FunctionPointerTests.cs (11)
816
N(SyntaxKind.
RefKeyword
);
843
N(SyntaxKind.
RefKeyword
);
937
N(SyntaxKind.
RefKeyword
);
979
N(SyntaxKind.
RefKeyword
);
1024
N(SyntaxKind.
RefKeyword
);
2131
N(SyntaxKind.
RefKeyword
);
2141
N(SyntaxKind.
RefKeyword
);
2174
N(SyntaxKind.
RefKeyword
);
2267
N(SyntaxKind.
RefKeyword
);
3327
N(SyntaxKind.
RefKeyword
);
3328
N(SyntaxKind.
RefKeyword
);
Parsing\LambdaAttributeParsingTests.cs (5)
260
N(SyntaxKind.
RefKeyword
);
623
N(SyntaxKind.
RefKeyword
);
635
N(SyntaxKind.
RefKeyword
);
779
N(SyntaxKind.
RefKeyword
);
791
N(SyntaxKind.
RefKeyword
);
Parsing\LambdaParameterParsingTests.cs (2)
3576
N(SyntaxKind.
RefKeyword
);
5221
N(SyntaxKind.
RefKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (41)
620
N(SyntaxKind.
RefKeyword
);
2469
N(SyntaxKind.
RefKeyword
);
2480
N(SyntaxKind.
RefKeyword
);
2492
N(SyntaxKind.
RefKeyword
);
2517
N(SyntaxKind.
RefKeyword
);
2532
N(SyntaxKind.
RefKeyword
);
2552
N(SyntaxKind.
RefKeyword
);
2568
N(SyntaxKind.
RefKeyword
);
2582
N(SyntaxKind.
RefKeyword
);
2606
N(SyntaxKind.
RefKeyword
);
2638
N(SyntaxKind.
RefKeyword
);
2685
N(SyntaxKind.
RefKeyword
);
2736
N(SyntaxKind.
RefKeyword
);
2792
N(SyntaxKind.
RefKeyword
);
2850
N(SyntaxKind.
RefKeyword
);
2898
N(SyntaxKind.
RefKeyword
);
2938
N(SyntaxKind.
RefKeyword
);
2983
N(SyntaxKind.
RefKeyword
);
3030
N(SyntaxKind.
RefKeyword
);
3070
N(SyntaxKind.
RefKeyword
);
3107
N(SyntaxKind.
RefKeyword
);
3149
N(SyntaxKind.
RefKeyword
);
3194
N(SyntaxKind.
RefKeyword
);
3245
N(SyntaxKind.
RefKeyword
);
3290
N(SyntaxKind.
RefKeyword
);
3331
N(SyntaxKind.
RefKeyword
);
3358
N(SyntaxKind.
RefKeyword
);
3398
N(SyntaxKind.
RefKeyword
);
3420
N(SyntaxKind.
RefKeyword
);
3472
N(SyntaxKind.
RefKeyword
);
3525
N(SyntaxKind.
RefKeyword
);
3727
N(SyntaxKind.
RefKeyword
);
3780
N(SyntaxKind.
RefKeyword
);
3881
N(SyntaxKind.
RefKeyword
);
3960
N(SyntaxKind.
RefKeyword
);
4127
N(SyntaxKind.
RefKeyword
);
4227
N(SyntaxKind.
RefKeyword
);
5350
N(SyntaxKind.
RefKeyword
);
5361
N(SyntaxKind.
RefKeyword
);
5597
N(SyntaxKind.
RefKeyword
);
5821
N(SyntaxKind.
RefKeyword
);
Parsing\MemberDeclarationParsingTests.cs (5)
10199
N(SyntaxKind.
RefKeyword
);
10247
N(SyntaxKind.
RefKeyword
);
10315
N(SyntaxKind.
RefKeyword
);
10349
N(SyntaxKind.
RefKeyword
);
13227
N(SyntaxKind.
RefKeyword
);
Parsing\RecordParsing.cs (4)
3820
N(SyntaxKind.
RefKeyword
);
3853
N(SyntaxKind.
RefKeyword
);
3899
N(SyntaxKind.
RefKeyword
);
3927
N(SyntaxKind.
RefKeyword
);
Parsing\RefFieldParsingTests.cs (27)
37
N(SyntaxKind.
RefKeyword
);
74
N(SyntaxKind.
RefKeyword
);
185
N(SyntaxKind.
RefKeyword
);
199
N(SyntaxKind.
RefKeyword
);
243
N(SyntaxKind.
RefKeyword
);
262
N(SyntaxKind.
RefKeyword
);
324
N(SyntaxKind.
RefKeyword
);
369
N(SyntaxKind.
RefKeyword
);
383
N(SyntaxKind.
RefKeyword
);
430
N(SyntaxKind.
RefKeyword
);
444
N(SyntaxKind.
RefKeyword
);
481
N(SyntaxKind.
RefKeyword
);
513
N(SyntaxKind.
RefKeyword
);
567
N(SyntaxKind.
RefKeyword
);
606
N(SyntaxKind.
RefKeyword
);
673
N(SyntaxKind.
RefKeyword
);
720
N(SyntaxKind.
RefKeyword
);
764
N(SyntaxKind.
RefKeyword
);
811
N(SyntaxKind.
RefKeyword
);
862
N(SyntaxKind.
RefKeyword
);
912
N(SyntaxKind.
RefKeyword
);
952
N(SyntaxKind.
RefKeyword
);
998
N(SyntaxKind.
RefKeyword
);
1029
N(SyntaxKind.
RefKeyword
);
1076
N(SyntaxKind.
RefKeyword
);
1115
N(SyntaxKind.
RefKeyword
);
1170
N(SyntaxKind.
RefKeyword
);
Parsing\RefReadonlyTests.cs (20)
468
N(SyntaxKind.
RefKeyword
);
524
N(SyntaxKind.
RefKeyword
);
567
N(SyntaxKind.
RefKeyword
);
655
N(SyntaxKind.
RefKeyword
);
700
N(SyntaxKind.
RefKeyword
);
742
N(SyntaxKind.
RefKeyword
);
744
N(SyntaxKind.
RefKeyword
);
788
N(SyntaxKind.
RefKeyword
);
831
N(SyntaxKind.
RefKeyword
);
875
N(SyntaxKind.
RefKeyword
);
920
N(SyntaxKind.
RefKeyword
);
973
N(SyntaxKind.
RefKeyword
);
1045
N(SyntaxKind.
RefKeyword
);
1168
N(SyntaxKind.
RefKeyword
);
1210
N(SyntaxKind.
RefKeyword
);
1253
N(SyntaxKind.
RefKeyword
);
1299
N(SyntaxKind.
RefKeyword
);
1341
N(SyntaxKind.
RefKeyword
);
1359
N(SyntaxKind.
RefKeyword
);
1399
N(SyntaxKind.
RefKeyword
);
Parsing\ScriptParsingTests.cs (8)
3874
N(SyntaxKind.
RefKeyword
);
4219
N(SyntaxKind.
RefKeyword
);
4307
N(SyntaxKind.
RefKeyword
);
6629
N(SyntaxKind.
RefKeyword
);
6698
N(SyntaxKind.
RefKeyword
);
6773
N(SyntaxKind.
RefKeyword
);
7614
N(SyntaxKind.
RefKeyword
);
7685
N(SyntaxKind.
RefKeyword
);
Parsing\StatementParsingTests.cs (11)
1676
N(SyntaxKind.
RefKeyword
);
1690
N(SyntaxKind.
RefKeyword
);
1707
N(SyntaxKind.
RefKeyword
);
3150
N(SyntaxKind.
RefKeyword
);
3164
N(SyntaxKind.
RefKeyword
);
3188
N(SyntaxKind.
RefKeyword
);
3203
N(SyntaxKind.
RefKeyword
);
3227
N(SyntaxKind.
RefKeyword
);
3241
N(SyntaxKind.
RefKeyword
);
3265
N(SyntaxKind.
RefKeyword
);
3319
N(SyntaxKind.
RefKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (3)
2025
N(SyntaxKind.
RefKeyword
);
3106
N(SyntaxKind.
RefKeyword
);
3130
N(SyntaxKind.
RefKeyword
);
Parsing\UsingDirectiveParsingTests.cs (4)
84
N(SyntaxKind.
RefKeyword
);
380
N(SyntaxKind.
RefKeyword
);
1001
N(SyntaxKind.
RefKeyword
);
1045
N(SyntaxKind.
RefKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
75
public static readonly SyntaxToken RefKeyword = Token(SyntaxKind.
RefKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (2)
27
SyntaxKind.
RefKeyword
=> RefKind.Ref,
87
if (argument.RefOrOutKeyword.Kind() == SyntaxKind.
RefKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
214
ArgumentSyntax { RefOrOutKeyword.RawKind: (int)SyntaxKind.
RefKeyword
})
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
98
case SyntaxKind.
RefKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
141
SyntaxKind.
RefKeyword
=> DeclarationModifiers.Ref,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
730
syntaxTree.IsAfterKeyword(position, SyntaxKind.
RefKeyword
, cancellationToken) ||
1107
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
1287
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
1795
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.ReadOnlyKeyword)
2445
if (token.Kind() is SyntaxKind.
RefKeyword
or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
24
SyntaxKind.
RefKeyword
Microsoft.Gen.ContextualOptions (1)
Parser.cs (1)
45
.Where(modifier => modifier.IsKind(SyntaxKind.
RefKeyword
))
Microsoft.Interop.JavaScript.JSImportGenerator (4)
Marshaling\FuncJSGenerator.cs (2)
120
.WithModifiers(TokenList(Token(SyntaxKind.
RefKeyword
)))
135
.WithModifiers(TokenList(Token(SyntaxKind.
RefKeyword
)))
Marshaling\TaskJSGenerator.cs (2)
107
.WithModifiers(TokenList(Token(SyntaxKind.
RefKeyword
)))
130
.WithModifiers(TokenList(Token(SyntaxKind.
RefKeyword
)))
Microsoft.Interop.SourceGeneration (5)
Marshalling\MarshallerHelpers.cs (3)
430
tokens = tokens.Add(Token(SyntaxKind.
RefKeyword
));
437
tokens = tokens.Add(Token(SyntaxKind.
RefKeyword
));
459
RefKind.Ref => Token(SyntaxKind.
RefKeyword
),
SyntaxExtensions.cs (1)
107
int idxRef = modifiers.IndexOf(SyntaxKind.
RefKeyword
);
Utils\SyntaxFactoryExtensions.cs (1)
72
=> Argument(null, Token(SyntaxKind.
RefKeyword
), expression);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
1872
if (modifiers.Any(SyntaxKind.
RefKeyword
))
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
120
if (parameter.Modifiers.Any(SyntaxKind.
RefKeyword
))
CodeModel\ParameterFlagsExtensions.cs (1)
22
case SyntaxKind.
RefKeyword
: