512 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)
1329
case SyntaxKind.
RefKeyword
:
2229
return (this.CurrentToken.ContextualKind == SyntaxKind.AllowsKeyword && PeekToken(1).Kind == SyntaxKind.
RefKeyword
) || this.IsTrueIdentifier();
2282
PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
2292
this.EatToken(SyntaxKind.
RefKeyword
),
2295
if (this.CurrentToken.Kind == SyntaxKind.CommaToken && PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
2364
case SyntaxKind.
RefKeyword
:
4160
var refKeyword = this.CurrentToken.Kind == SyntaxKind.
RefKeyword
&& !this.IsPossibleLambdaExpression(Precedence.Expression)
4741
case SyntaxKind.
RefKeyword
:
4758
if (this.CurrentToken.Kind is SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4775
while (this.CurrentToken.Kind is SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
5327
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.Kind == SyntaxKind.
RefKeyword
&& !this.IsPossibleLambdaExpression(Precedence.Expression)
6879
if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
7248
if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
8180
if (tk == SyntaxKind.
RefKeyword
||
8328
if (tk == SyntaxKind.
RefKeyword
)
8839
case SyntaxKind.
RefKeyword
:
9226
if (this.PeekToken(1).Kind == SyntaxKind.
RefKeyword
)
9237
else if (this.CurrentToken.Kind == SyntaxKind.
RefKeyword
)
10154
if (this.CurrentToken.Kind is (SyntaxKind.
RefKeyword
or SyntaxKind.OutKeyword or SyntaxKind.InKeyword))
10681
case SyntaxKind.
RefKeyword
:
10912
return SyntaxFacts.IsPrefixUnaryExpression(kind) && kind is not SyntaxKind.
RefKeyword
and not SyntaxKind.OutKeyword;
11185
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.Kind == SyntaxKind.
RefKeyword
&&
11604
case SyntaxKind.
RefKeyword
:
12046
case SyntaxKind.
RefKeyword
:
12066
!(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
);
585
addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.
RefKeyword
);
612
else if (previousModifier?.Kind() != SyntaxKind.
RefKeyword
)
949
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)
78
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)
97
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)
403
? SyntaxKind.
RefKeyword
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (2)
249
result.Add(Keyword(SyntaxKind.
RefKeyword
));
254
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 (405)
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
);
1176
N(SyntaxKind.
RefKeyword
);
1254
N(SyntaxKind.
RefKeyword
);
1471
N(SyntaxKind.
RefKeyword
);
1490
N(SyntaxKind.
RefKeyword
);
1510
N(SyntaxKind.
RefKeyword
);
1586
N(SyntaxKind.
RefKeyword
);
1679
N(SyntaxKind.
RefKeyword
);
1702
N(SyntaxKind.
RefKeyword
);
1786
N(SyntaxKind.
RefKeyword
);
1820
N(SyntaxKind.
RefKeyword
);
1905
N(SyntaxKind.
RefKeyword
);
1945
N(SyntaxKind.
RefKeyword
);
1998
N(SyntaxKind.
RefKeyword
);
2047
N(SyntaxKind.
RefKeyword
);
2073
N(SyntaxKind.
RefKeyword
);
2133
N(SyntaxKind.
RefKeyword
);
2248
N(SyntaxKind.
RefKeyword
);
2278
N(SyntaxKind.
RefKeyword
);
2354
N(SyntaxKind.
RefKeyword
);
2384
N(SyntaxKind.
RefKeyword
);
2459
N(SyntaxKind.
RefKeyword
);
2485
N(SyntaxKind.
RefKeyword
);
2581
N(SyntaxKind.
RefKeyword
);
2603
N(SyntaxKind.
RefKeyword
);
2669
N(SyntaxKind.
RefKeyword
);
2713
N(SyntaxKind.
RefKeyword
);
2755
N(SyntaxKind.
RefKeyword
);
2804
N(SyntaxKind.
RefKeyword
);
2830
N(SyntaxKind.
RefKeyword
);
2890
N(SyntaxKind.
RefKeyword
);
2929
N(SyntaxKind.
RefKeyword
);
3083
N(SyntaxKind.
RefKeyword
);
3237
N(SyntaxKind.
RefKeyword
);
3407
N(SyntaxKind.
RefKeyword
);
3463
N(SyntaxKind.
RefKeyword
);
3586
N(SyntaxKind.
RefKeyword
);
3666
N(SyntaxKind.
RefKeyword
);
3742
N(SyntaxKind.
RefKeyword
);
3809
N(SyntaxKind.
RefKeyword
);
3896
N(SyntaxKind.
RefKeyword
);
3980
N(SyntaxKind.
RefKeyword
);
4191
N(SyntaxKind.
RefKeyword
);
4284
N(SyntaxKind.
RefKeyword
);
4339
N(SyntaxKind.
RefKeyword
);
4433
N(SyntaxKind.
RefKeyword
);
4560
N(SyntaxKind.
RefKeyword
);
4635
N(SyntaxKind.
RefKeyword
);
4928
N(SyntaxKind.
RefKeyword
);
5003
N(SyntaxKind.
RefKeyword
);
5143
N(SyntaxKind.
RefKeyword
);
5438
N(SyntaxKind.
RefKeyword
);
5507
N(SyntaxKind.
RefKeyword
);
5990
N(SyntaxKind.
RefKeyword
);
6057
N(SyntaxKind.
RefKeyword
);
6128
N(SyntaxKind.
RefKeyword
);
6192
N(SyntaxKind.
RefKeyword
);
6265
N(SyntaxKind.
RefKeyword
);
6352
N(SyntaxKind.
RefKeyword
);
6552
N(SyntaxKind.
RefKeyword
);
6623
N(SyntaxKind.
RefKeyword
);
6684
N(SyntaxKind.
RefKeyword
);
6764
N(SyntaxKind.
RefKeyword
);
6892
N(SyntaxKind.
RefKeyword
);
6952
N(SyntaxKind.
RefKeyword
);
7185
N(SyntaxKind.
RefKeyword
);
7245
N(SyntaxKind.
RefKeyword
);
7355
N(SyntaxKind.
RefKeyword
);
7559
N(SyntaxKind.
RefKeyword
);
7712
N(SyntaxKind.
RefKeyword
);
7772
N(SyntaxKind.
RefKeyword
);
7919
N(SyntaxKind.
RefKeyword
);
8303
N(SyntaxKind.
RefKeyword
);
8342
N(SyntaxKind.
RefKeyword
);
8417
N(SyntaxKind.
RefKeyword
);
8465
N(SyntaxKind.
RefKeyword
);
8510
N(SyntaxKind.
RefKeyword
);
8551
N(SyntaxKind.
RefKeyword
);
8600
N(SyntaxKind.
RefKeyword
);
8649
N(SyntaxKind.
RefKeyword
);
8784
N(SyntaxKind.
RefKeyword
);
8842
N(SyntaxKind.
RefKeyword
);
8886
N(SyntaxKind.
RefKeyword
);
8954
N(SyntaxKind.
RefKeyword
);
9044
N(SyntaxKind.
RefKeyword
);
9089
N(SyntaxKind.
RefKeyword
);
9311
N(SyntaxKind.
RefKeyword
);
9357
N(SyntaxKind.
RefKeyword
);
9437
N(SyntaxKind.
RefKeyword
);
9574
N(SyntaxKind.
RefKeyword
);
9627
N(SyntaxKind.
RefKeyword
);
9637
N(SyntaxKind.
RefKeyword
);
9715
N(SyntaxKind.
RefKeyword
);
9775
N(SyntaxKind.
RefKeyword
);
9816
N(SyntaxKind.
RefKeyword
);
9879
N(SyntaxKind.
RefKeyword
);
9953
N(SyntaxKind.
RefKeyword
);
10099
N(SyntaxKind.
RefKeyword
);
10165
N(SyntaxKind.
RefKeyword
);
10204
N(SyntaxKind.
RefKeyword
);
10270
N(SyntaxKind.
RefKeyword
);
10355
N(SyntaxKind.
RefKeyword
);
10397
N(SyntaxKind.
RefKeyword
);
10558
N(SyntaxKind.
RefKeyword
);
10600
N(SyntaxKind.
RefKeyword
);
10674
N(SyntaxKind.
RefKeyword
);
11063
N(SyntaxKind.
RefKeyword
);
11173
N(SyntaxKind.
RefKeyword
);
11430
N(SyntaxKind.
RefKeyword
);
11499
N(SyntaxKind.
RefKeyword
);
11589
N(SyntaxKind.
RefKeyword
);
11784
N(SyntaxKind.
RefKeyword
);
11868
N(SyntaxKind.
RefKeyword
);
11946
N(SyntaxKind.
RefKeyword
);
11970
N(SyntaxKind.
RefKeyword
);
12056
N(SyntaxKind.
RefKeyword
);
12110
N(SyntaxKind.
RefKeyword
);
12155
N(SyntaxKind.
RefKeyword
);
12240
N(SyntaxKind.
RefKeyword
);
12293
N(SyntaxKind.
RefKeyword
);
12355
N(SyntaxKind.
RefKeyword
);
12412
N(SyntaxKind.
RefKeyword
);
12472
N(SyntaxKind.
RefKeyword
);
12539
N(SyntaxKind.
RefKeyword
);
12693
N(SyntaxKind.
RefKeyword
);
12753
N(SyntaxKind.
RefKeyword
);
12799
N(SyntaxKind.
RefKeyword
);
12860
N(SyntaxKind.
RefKeyword
);
12953
N(SyntaxKind.
RefKeyword
);
13003
N(SyntaxKind.
RefKeyword
);
13250
N(SyntaxKind.
RefKeyword
);
13300
N(SyntaxKind.
RefKeyword
);
13390
N(SyntaxKind.
RefKeyword
);
13557
N(SyntaxKind.
RefKeyword
);
13570
N(SyntaxKind.
RefKeyword
);
13619
N(SyntaxKind.
RefKeyword
);
13689
N(SyntaxKind.
RefKeyword
);
13715
N(SyntaxKind.
RefKeyword
);
13775
N(SyntaxKind.
RefKeyword
);
13888
N(SyntaxKind.
RefKeyword
);
13911
N(SyntaxKind.
RefKeyword
);
13987
N(SyntaxKind.
RefKeyword
);
14046
N(SyntaxKind.
RefKeyword
);
14055
N(SyntaxKind.
RefKeyword
);
14107
N(SyntaxKind.
RefKeyword
);
14175
N(SyntaxKind.
RefKeyword
);
14184
N(SyntaxKind.
RefKeyword
);
14300
N(SyntaxKind.
RefKeyword
);
14341
N(SyntaxKind.
RefKeyword
);
14383
N(SyntaxKind.
RefKeyword
);
14445
N(SyntaxKind.
RefKeyword
);
14513
N(SyntaxKind.
RefKeyword
);
14537
N(SyntaxKind.
RefKeyword
);
14833
N(SyntaxKind.
RefKeyword
);
14919
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)
257
N(SyntaxKind.
RefKeyword
);
616
N(SyntaxKind.
RefKeyword
);
628
N(SyntaxKind.
RefKeyword
);
772
N(SyntaxKind.
RefKeyword
);
784
N(SyntaxKind.
RefKeyword
);
Parsing\LambdaParameterParsingTests.cs (15)
3571
N(SyntaxKind.
RefKeyword
);
5216
N(SyntaxKind.
RefKeyword
);
5866
N(SyntaxKind.
RefKeyword
);
5899
N(SyntaxKind.
RefKeyword
);
5927
N(SyntaxKind.
RefKeyword
);
5961
N(SyntaxKind.
RefKeyword
);
5991
N(SyntaxKind.
RefKeyword
);
6025
N(SyntaxKind.
RefKeyword
);
6244
N(SyntaxKind.
RefKeyword
);
6285
N(SyntaxKind.
RefKeyword
);
6333
N(SyntaxKind.
RefKeyword
);
6378
N(SyntaxKind.
RefKeyword
);
6407
N(SyntaxKind.
RefKeyword
);
6442
N(SyntaxKind.
RefKeyword
);
6560
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
);
4118
N(SyntaxKind.
RefKeyword
);
4206
N(SyntaxKind.
RefKeyword
);
5329
N(SyntaxKind.
RefKeyword
);
5340
N(SyntaxKind.
RefKeyword
);
5576
N(SyntaxKind.
RefKeyword
);
5800
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)
78
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)
97
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)
118
if (parameter.Modifiers.Any(SyntaxKind.
RefKeyword
))
CodeModel\ParameterFlagsExtensions.cs (1)
22
case SyntaxKind.
RefKeyword
: