197 references to RefType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Expressions.cs (1)
813
case SyntaxKind.
RefType
:
Binder\Binder_Symbols.cs (1)
478
case SyntaxKind.
RefType
:
Compilation\CSharpSemanticModel.cs (1)
102
case SyntaxKind.
RefType
:
Compilation\MemberSemanticModel.cs (1)
2301
case SyntaxKind.
RefType
:
Parser\LanguageParser.cs (5)
2632
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.
RefType
|| !IsOperatorStart(out _, advanceParser: false)))
2726
!type.IsMissing && type.Kind != SyntaxKind.
RefType
&&
2927
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.
RefType
)
2966
if (type.Kind != SyntaxKind.
RefType
&&
3115
if (type.Kind != SyntaxKind.
RefType
)
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 (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
63
if (type.IsVar || (type.Kind() == SyntaxKind.
RefType
&& ((RefTypeSyntax)type).Type.IsVar))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
601
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1798
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
66
if (variableDeclaration.Type.Kind() == SyntaxKind.
RefType
)
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
145
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)
48
(context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
) ||
EditAndContinue\SyntaxComparer.cs (1)
514
case SyntaxKind.
RefType
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (173)
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)
286
N(SyntaxKind.
RefType
);
347
N(SyntaxKind.
RefType
);
397
N(SyntaxKind.
RefType
);
439
N(SyntaxKind.
RefType
);
468
N(SyntaxKind.
RefType
);
1457
N(SyntaxKind.
RefType
);
1476
N(SyntaxKind.
RefType
);
1496
N(SyntaxKind.
RefType
);
1572
N(SyntaxKind.
RefType
);
1665
N(SyntaxKind.
RefType
);
1688
N(SyntaxKind.
RefType
);
1772
N(SyntaxKind.
RefType
);
1806
N(SyntaxKind.
RefType
);
1891
N(SyntaxKind.
RefType
);
1931
N(SyntaxKind.
RefType
);
1984
N(SyntaxKind.
RefType
);
2033
N(SyntaxKind.
RefType
);
2059
N(SyntaxKind.
RefType
);
2119
N(SyntaxKind.
RefType
);
2234
N(SyntaxKind.
RefType
);
2264
N(SyntaxKind.
RefType
);
2340
N(SyntaxKind.
RefType
);
2370
N(SyntaxKind.
RefType
);
2445
N(SyntaxKind.
RefType
);
2471
N(SyntaxKind.
RefType
);
2567
N(SyntaxKind.
RefType
);
2589
N(SyntaxKind.
RefType
);
2655
N(SyntaxKind.
RefType
);
2699
N(SyntaxKind.
RefType
);
2741
N(SyntaxKind.
RefType
);
2790
N(SyntaxKind.
RefType
);
2816
N(SyntaxKind.
RefType
);
2876
N(SyntaxKind.
RefType
);
2915
N(SyntaxKind.
RefType
);
3069
N(SyntaxKind.
RefType
);
3223
N(SyntaxKind.
RefType
);
3393
N(SyntaxKind.
RefType
);
3449
N(SyntaxKind.
RefType
);
3572
N(SyntaxKind.
RefType
);
3795
N(SyntaxKind.
RefType
);
4177
N(SyntaxKind.
RefType
);
4270
N(SyntaxKind.
RefType
);
4325
N(SyntaxKind.
RefType
);
4419
N(SyntaxKind.
RefType
);
4546
N(SyntaxKind.
RefType
);
4621
N(SyntaxKind.
RefType
);
4914
N(SyntaxKind.
RefType
);
4989
N(SyntaxKind.
RefType
);
5129
N(SyntaxKind.
RefType
);
5424
N(SyntaxKind.
RefType
);
5493
N(SyntaxKind.
RefType
);
5976
N(SyntaxKind.
RefType
);
6114
N(SyntaxKind.
RefType
);
6178
N(SyntaxKind.
RefType
);
6538
N(SyntaxKind.
RefType
);
6670
N(SyntaxKind.
RefType
);
6878
N(SyntaxKind.
RefType
);
6938
N(SyntaxKind.
RefType
);
7171
N(SyntaxKind.
RefType
);
7231
N(SyntaxKind.
RefType
);
7341
N(SyntaxKind.
RefType
);
8289
N(SyntaxKind.
RefType
);
8328
N(SyntaxKind.
RefType
);
8403
N(SyntaxKind.
RefType
);
8451
N(SyntaxKind.
RefType
);
8496
N(SyntaxKind.
RefType
);
8537
N(SyntaxKind.
RefType
);
8586
N(SyntaxKind.
RefType
);
8635
N(SyntaxKind.
RefType
);
8770
N(SyntaxKind.
RefType
);
8872
N(SyntaxKind.
RefType
);
9030
N(SyntaxKind.
RefType
);
9075
N(SyntaxKind.
RefType
);
9297
N(SyntaxKind.
RefType
);
9343
N(SyntaxKind.
RefType
);
9423
N(SyntaxKind.
RefType
);
9701
N(SyntaxKind.
RefType
);
9802
N(SyntaxKind.
RefType
);
10085
N(SyntaxKind.
RefType
);
10190
N(SyntaxKind.
RefType
);
10341
N(SyntaxKind.
RefType
);
10383
N(SyntaxKind.
RefType
);
10544
N(SyntaxKind.
RefType
);
10586
N(SyntaxKind.
RefType
);
10660
N(SyntaxKind.
RefType
);
11159
N(SyntaxKind.
RefType
);
11416
N(SyntaxKind.
RefType
);
11485
N(SyntaxKind.
RefType
);
11575
N(SyntaxKind.
RefType
);
11770
N(SyntaxKind.
RefType
);
11854
N(SyntaxKind.
RefType
);
11932
N(SyntaxKind.
RefType
);
11956
N(SyntaxKind.
RefType
);
12042
N(SyntaxKind.
RefType
);
12096
N(SyntaxKind.
RefType
);
12141
N(SyntaxKind.
RefType
);
12226
N(SyntaxKind.
RefType
);
12341
N(SyntaxKind.
RefType
);
12398
N(SyntaxKind.
RefType
);
12679
N(SyntaxKind.
RefType
);
12739
N(SyntaxKind.
RefType
);
12785
N(SyntaxKind.
RefType
);
12846
N(SyntaxKind.
RefType
);
12939
N(SyntaxKind.
RefType
);
12989
N(SyntaxKind.
RefType
);
13236
N(SyntaxKind.
RefType
);
13286
N(SyntaxKind.
RefType
);
13376
N(SyntaxKind.
RefType
);
13556
N(SyntaxKind.
RefType
);
13701
N(SyntaxKind.
RefType
);
14041
N(SyntaxKind.
RefType
);
14170
N(SyntaxKind.
RefType
);
14327
N(SyntaxKind.
RefType
);
14523
N(SyntaxKind.
RefType
);
14819
N(SyntaxKind.
RefType
);
14905
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
);
5348
N(SyntaxKind.
RefType
);
5595
N(SyntaxKind.
RefType
);
5819
N(SyntaxKind.
RefType
);
Parsing\MemberDeclarationParsingTests.cs (1)
13225
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)
466
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
);
3104
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 (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
63
if (type.IsVar || (type.Kind() == SyntaxKind.
RefType
&& ((RefTypeSyntax)type).Type.IsVar))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
601
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1798
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))