209 references to RefType
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Expressions.cs (1)
852
case SyntaxKind.
RefType
:
Binder\Binder_Symbols.cs (1)
488
case SyntaxKind.
RefType
:
Compilation\CSharpSemanticModel.cs (1)
103
case SyntaxKind.
RefType
:
Compilation\MemberSemanticModel.cs (1)
2340
case SyntaxKind.
RefType
:
Parser\LanguageParser.cs (5)
2683
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.
RefType
|| !IsOperatorStart(out _, advanceParser: false)))
2775
!type.IsMissing && type.Kind != SyntaxKind.
RefType
&&
2989
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.
RefType
)
3079
if (type.Kind != SyntaxKind.
RefType
&&
3254
if (type.Kind != SyntaxKind.
RefType
)
Syntax.xml.Internal.Generated.cs (4)
28623
var cached = CSharpSyntaxNodeCache.TryGetNode((int)SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, this.context, out hash);
28626
var result = new RefTypeSyntax(SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, this.context);
33990
var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, out hash);
33993
var result = new RefTypeSyntax(SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type);
Syntax.xml.Syntax.Generated.cs (1)
988
/// <item><description><see cref="SyntaxKind.
RefType
"/></description></item>
Syntax\InternalSyntax\TypeSyntax.cs (1)
19
public bool IsRef => Kind == SyntaxKind.
RefType
;
Syntax\SyntaxExtensions.cs (1)
454
case SyntaxKind.
RefType
:
Syntax\SyntaxFacts.cs (1)
153
case
RefType
:
Syntax\SyntaxNodeExtensions.cs (1)
250
if (syntax.Kind() == SyntaxKind.
RefType
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1799
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
69
if (variableDeclaration.Type.Kind() == SyntaxKind.
RefType
)
Completion\CompletionProviders\CompletionUtilities.cs (1)
341
if (prevToken.Kind() is SyntaxKind.RefKeyword or SyntaxKind.ReadOnlyKeyword && prevToken.Parent.IsKind(SyntaxKind.
RefType
))
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
73
context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
);
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
43
(context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
) ||
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1914
case SyntaxKind.
RefType
:
2240
case SyntaxKind.
RefType
:
EditAndContinue\SyntaxComparer.cs (1)
516
case SyntaxKind.
RefType
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (178)
Parsing\DeclarationExpressionTests.cs (2)
282
N(SyntaxKind.
RefType
);
345
N(SyntaxKind.
RefType
);
Parsing\DeclarationParsingTests.cs (1)
2860
Assert.Equal(SyntaxKind.
RefType
, ms.ReturnType.Kind());
Parsing\DeclarationScopeParsingTests.cs (116)
280
N(SyntaxKind.
RefType
);
362
N(SyntaxKind.
RefType
);
412
N(SyntaxKind.
RefType
);
454
N(SyntaxKind.
RefType
);
483
N(SyntaxKind.
RefType
);
1549
N(SyntaxKind.
RefType
);
1568
N(SyntaxKind.
RefType
);
1588
N(SyntaxKind.
RefType
);
1664
N(SyntaxKind.
RefType
);
1757
N(SyntaxKind.
RefType
);
1780
N(SyntaxKind.
RefType
);
1864
N(SyntaxKind.
RefType
);
1898
N(SyntaxKind.
RefType
);
1983
N(SyntaxKind.
RefType
);
2023
N(SyntaxKind.
RefType
);
2076
N(SyntaxKind.
RefType
);
2125
N(SyntaxKind.
RefType
);
2151
N(SyntaxKind.
RefType
);
2211
N(SyntaxKind.
RefType
);
2326
N(SyntaxKind.
RefType
);
2356
N(SyntaxKind.
RefType
);
2432
N(SyntaxKind.
RefType
);
2462
N(SyntaxKind.
RefType
);
2537
N(SyntaxKind.
RefType
);
2563
N(SyntaxKind.
RefType
);
2659
N(SyntaxKind.
RefType
);
2681
N(SyntaxKind.
RefType
);
2747
N(SyntaxKind.
RefType
);
2791
N(SyntaxKind.
RefType
);
2833
N(SyntaxKind.
RefType
);
2882
N(SyntaxKind.
RefType
);
2908
N(SyntaxKind.
RefType
);
2968
N(SyntaxKind.
RefType
);
3007
N(SyntaxKind.
RefType
);
3161
N(SyntaxKind.
RefType
);
3315
N(SyntaxKind.
RefType
);
3485
N(SyntaxKind.
RefType
);
3541
N(SyntaxKind.
RefType
);
3664
N(SyntaxKind.
RefType
);
3887
N(SyntaxKind.
RefType
);
4269
N(SyntaxKind.
RefType
);
4362
N(SyntaxKind.
RefType
);
4417
N(SyntaxKind.
RefType
);
4511
N(SyntaxKind.
RefType
);
4638
N(SyntaxKind.
RefType
);
4713
N(SyntaxKind.
RefType
);
5006
N(SyntaxKind.
RefType
);
5081
N(SyntaxKind.
RefType
);
5221
N(SyntaxKind.
RefType
);
5516
N(SyntaxKind.
RefType
);
5585
N(SyntaxKind.
RefType
);
6068
N(SyntaxKind.
RefType
);
6206
N(SyntaxKind.
RefType
);
6270
N(SyntaxKind.
RefType
);
6630
N(SyntaxKind.
RefType
);
6762
N(SyntaxKind.
RefType
);
6970
N(SyntaxKind.
RefType
);
7030
N(SyntaxKind.
RefType
);
7263
N(SyntaxKind.
RefType
);
7323
N(SyntaxKind.
RefType
);
7433
N(SyntaxKind.
RefType
);
8381
N(SyntaxKind.
RefType
);
8420
N(SyntaxKind.
RefType
);
8495
N(SyntaxKind.
RefType
);
8543
N(SyntaxKind.
RefType
);
8588
N(SyntaxKind.
RefType
);
8629
N(SyntaxKind.
RefType
);
8678
N(SyntaxKind.
RefType
);
8727
N(SyntaxKind.
RefType
);
8862
N(SyntaxKind.
RefType
);
8964
N(SyntaxKind.
RefType
);
9122
N(SyntaxKind.
RefType
);
9167
N(SyntaxKind.
RefType
);
9389
N(SyntaxKind.
RefType
);
9435
N(SyntaxKind.
RefType
);
9515
N(SyntaxKind.
RefType
);
9812
N(SyntaxKind.
RefType
);
9913
N(SyntaxKind.
RefType
);
10196
N(SyntaxKind.
RefType
);
10301
N(SyntaxKind.
RefType
);
10452
N(SyntaxKind.
RefType
);
10494
N(SyntaxKind.
RefType
);
10655
N(SyntaxKind.
RefType
);
10697
N(SyntaxKind.
RefType
);
10771
N(SyntaxKind.
RefType
);
11270
N(SyntaxKind.
RefType
);
11523
N(SyntaxKind.
RefType
);
11592
N(SyntaxKind.
RefType
);
11682
N(SyntaxKind.
RefType
);
11877
N(SyntaxKind.
RefType
);
11961
N(SyntaxKind.
RefType
);
12039
N(SyntaxKind.
RefType
);
12063
N(SyntaxKind.
RefType
);
12149
N(SyntaxKind.
RefType
);
12203
N(SyntaxKind.
RefType
);
12248
N(SyntaxKind.
RefType
);
12333
N(SyntaxKind.
RefType
);
12448
N(SyntaxKind.
RefType
);
12505
N(SyntaxKind.
RefType
);
12786
N(SyntaxKind.
RefType
);
12846
N(SyntaxKind.
RefType
);
12892
N(SyntaxKind.
RefType
);
12953
N(SyntaxKind.
RefType
);
13046
N(SyntaxKind.
RefType
);
13096
N(SyntaxKind.
RefType
);
13343
N(SyntaxKind.
RefType
);
13393
N(SyntaxKind.
RefType
);
13483
N(SyntaxKind.
RefType
);
13663
N(SyntaxKind.
RefType
);
13808
N(SyntaxKind.
RefType
);
14148
N(SyntaxKind.
RefType
);
14277
N(SyntaxKind.
RefType
);
14434
N(SyntaxKind.
RefType
);
14630
N(SyntaxKind.
RefType
);
14926
N(SyntaxKind.
RefType
);
15012
N(SyntaxKind.
RefType
);
Parsing\ExtensionsParsingTests.cs (2)
2427
N(SyntaxKind.
RefType
);
3615
N(SyntaxKind.
RefType
);
Parsing\ForStatementParsingTest.cs (2)
3962
N(SyntaxKind.
RefType
);
4021
N(SyntaxKind.
RefType
);
Parsing\LambdaReturnTypeParsingTests.cs (29)
2467
N(SyntaxKind.
RefType
);
2515
N(SyntaxKind.
RefType
);
2550
N(SyntaxKind.
RefType
);
2566
N(SyntaxKind.
RefType
);
2604
N(SyntaxKind.
RefType
);
2636
N(SyntaxKind.
RefType
);
2683
N(SyntaxKind.
RefType
);
2734
N(SyntaxKind.
RefType
);
2790
N(SyntaxKind.
RefType
);
2848
N(SyntaxKind.
RefType
);
2896
N(SyntaxKind.
RefType
);
2936
N(SyntaxKind.
RefType
);
2981
N(SyntaxKind.
RefType
);
3028
N(SyntaxKind.
RefType
);
3068
N(SyntaxKind.
RefType
);
3105
N(SyntaxKind.
RefType
);
3147
N(SyntaxKind.
RefType
);
3192
N(SyntaxKind.
RefType
);
3243
N(SyntaxKind.
RefType
);
3288
N(SyntaxKind.
RefType
);
3329
N(SyntaxKind.
RefType
);
3356
N(SyntaxKind.
RefType
);
3396
N(SyntaxKind.
RefType
);
3418
N(SyntaxKind.
RefType
);
3470
N(SyntaxKind.
RefType
);
3523
N(SyntaxKind.
RefType
);
5327
N(SyntaxKind.
RefType
);
5574
N(SyntaxKind.
RefType
);
5798
N(SyntaxKind.
RefType
);
Parsing\MemberDeclarationParsingTests.cs (1)
14729
N(SyntaxKind.
RefType
);
Parsing\NullConditionalAssignmentParsingTests.cs (1)
531
N(SyntaxKind.
RefType
);
Parsing\RecordParsing.cs (2)
3818
N(SyntaxKind.
RefType
);
3897
N(SyntaxKind.
RefType
);
Parsing\RefFieldParsingTests.cs (10)
35
N(SyntaxKind.
RefType
);
72
N(SyntaxKind.
RefType
);
183
N(SyntaxKind.
RefType
);
241
N(SyntaxKind.
RefType
);
367
N(SyntaxKind.
RefType
);
428
N(SyntaxKind.
RefType
);
479
N(SyntaxKind.
RefType
);
511
N(SyntaxKind.
RefType
);
565
N(SyntaxKind.
RefType
);
604
N(SyntaxKind.
RefType
);
Parsing\RefReadonlyTests.cs (1)
461
N(SyntaxKind.
RefType
);
Parsing\StatementParsingTests.cs (5)
1674
N(SyntaxKind.
RefType
);
3148
N(SyntaxKind.
RefType
);
3186
N(SyntaxKind.
RefType
);
3225
N(SyntaxKind.
RefType
);
3263
N(SyntaxKind.
RefType
);
Parsing\TopLevelStatementsParsingTests.cs (2)
2023
N(SyntaxKind.
RefType
);
3103
N(SyntaxKind.
RefType
);
Parsing\UsingDirectiveParsingTests.cs (4)
82
N(SyntaxKind.
RefType
);
378
N(SyntaxKind.
RefType
);
999
N(SyntaxKind.
RefType
);
1043
N(SyntaxKind.
RefType
);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1799
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1799
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))