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)
2649
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.
RefType
|| !IsOperatorStart(out _, advanceParser: false)))
2743
!type.IsMissing && type.Kind != SyntaxKind.
RefType
&&
2944
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.
RefType
)
2983
if (type.Kind != SyntaxKind.
RefType
&&
3132
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.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 (7)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
69
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\CSharpEditAndContinueAnalyzer.cs (2)
1911
case SyntaxKind.
RefType
:
2237
case 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
);
1469
N(SyntaxKind.
RefType
);
1488
N(SyntaxKind.
RefType
);
1508
N(SyntaxKind.
RefType
);
1584
N(SyntaxKind.
RefType
);
1677
N(SyntaxKind.
RefType
);
1700
N(SyntaxKind.
RefType
);
1784
N(SyntaxKind.
RefType
);
1818
N(SyntaxKind.
RefType
);
1903
N(SyntaxKind.
RefType
);
1943
N(SyntaxKind.
RefType
);
1996
N(SyntaxKind.
RefType
);
2045
N(SyntaxKind.
RefType
);
2071
N(SyntaxKind.
RefType
);
2131
N(SyntaxKind.
RefType
);
2246
N(SyntaxKind.
RefType
);
2276
N(SyntaxKind.
RefType
);
2352
N(SyntaxKind.
RefType
);
2382
N(SyntaxKind.
RefType
);
2457
N(SyntaxKind.
RefType
);
2483
N(SyntaxKind.
RefType
);
2579
N(SyntaxKind.
RefType
);
2601
N(SyntaxKind.
RefType
);
2667
N(SyntaxKind.
RefType
);
2711
N(SyntaxKind.
RefType
);
2753
N(SyntaxKind.
RefType
);
2802
N(SyntaxKind.
RefType
);
2828
N(SyntaxKind.
RefType
);
2888
N(SyntaxKind.
RefType
);
2927
N(SyntaxKind.
RefType
);
3081
N(SyntaxKind.
RefType
);
3235
N(SyntaxKind.
RefType
);
3405
N(SyntaxKind.
RefType
);
3461
N(SyntaxKind.
RefType
);
3584
N(SyntaxKind.
RefType
);
3807
N(SyntaxKind.
RefType
);
4189
N(SyntaxKind.
RefType
);
4282
N(SyntaxKind.
RefType
);
4337
N(SyntaxKind.
RefType
);
4431
N(SyntaxKind.
RefType
);
4558
N(SyntaxKind.
RefType
);
4633
N(SyntaxKind.
RefType
);
4926
N(SyntaxKind.
RefType
);
5001
N(SyntaxKind.
RefType
);
5141
N(SyntaxKind.
RefType
);
5436
N(SyntaxKind.
RefType
);
5505
N(SyntaxKind.
RefType
);
5988
N(SyntaxKind.
RefType
);
6126
N(SyntaxKind.
RefType
);
6190
N(SyntaxKind.
RefType
);
6550
N(SyntaxKind.
RefType
);
6682
N(SyntaxKind.
RefType
);
6890
N(SyntaxKind.
RefType
);
6950
N(SyntaxKind.
RefType
);
7183
N(SyntaxKind.
RefType
);
7243
N(SyntaxKind.
RefType
);
7353
N(SyntaxKind.
RefType
);
8301
N(SyntaxKind.
RefType
);
8340
N(SyntaxKind.
RefType
);
8415
N(SyntaxKind.
RefType
);
8463
N(SyntaxKind.
RefType
);
8508
N(SyntaxKind.
RefType
);
8549
N(SyntaxKind.
RefType
);
8598
N(SyntaxKind.
RefType
);
8647
N(SyntaxKind.
RefType
);
8782
N(SyntaxKind.
RefType
);
8884
N(SyntaxKind.
RefType
);
9042
N(SyntaxKind.
RefType
);
9087
N(SyntaxKind.
RefType
);
9309
N(SyntaxKind.
RefType
);
9355
N(SyntaxKind.
RefType
);
9435
N(SyntaxKind.
RefType
);
9713
N(SyntaxKind.
RefType
);
9814
N(SyntaxKind.
RefType
);
10097
N(SyntaxKind.
RefType
);
10202
N(SyntaxKind.
RefType
);
10353
N(SyntaxKind.
RefType
);
10395
N(SyntaxKind.
RefType
);
10556
N(SyntaxKind.
RefType
);
10598
N(SyntaxKind.
RefType
);
10672
N(SyntaxKind.
RefType
);
11171
N(SyntaxKind.
RefType
);
11428
N(SyntaxKind.
RefType
);
11497
N(SyntaxKind.
RefType
);
11587
N(SyntaxKind.
RefType
);
11782
N(SyntaxKind.
RefType
);
11866
N(SyntaxKind.
RefType
);
11944
N(SyntaxKind.
RefType
);
11968
N(SyntaxKind.
RefType
);
12054
N(SyntaxKind.
RefType
);
12108
N(SyntaxKind.
RefType
);
12153
N(SyntaxKind.
RefType
);
12238
N(SyntaxKind.
RefType
);
12353
N(SyntaxKind.
RefType
);
12410
N(SyntaxKind.
RefType
);
12691
N(SyntaxKind.
RefType
);
12751
N(SyntaxKind.
RefType
);
12797
N(SyntaxKind.
RefType
);
12858
N(SyntaxKind.
RefType
);
12951
N(SyntaxKind.
RefType
);
13001
N(SyntaxKind.
RefType
);
13248
N(SyntaxKind.
RefType
);
13298
N(SyntaxKind.
RefType
);
13388
N(SyntaxKind.
RefType
);
13568
N(SyntaxKind.
RefType
);
13713
N(SyntaxKind.
RefType
);
14053
N(SyntaxKind.
RefType
);
14182
N(SyntaxKind.
RefType
);
14339
N(SyntaxKind.
RefType
);
14535
N(SyntaxKind.
RefType
);
14831
N(SyntaxKind.
RefType
);
14917
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)
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 (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))