198 references to RefType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Expressions.cs (1)
778
case SyntaxKind.
RefType
:
Binder\Binder_Symbols.cs (1)
476
case SyntaxKind.
RefType
:
Compilation\CSharpSemanticModel.cs (1)
102
case SyntaxKind.
RefType
:
Compilation\MemberSemanticModel.cs (1)
2273
case SyntaxKind.
RefType
:
Parser\LanguageParser.cs (5)
2316
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.
RefType
|| !IsOperatorStart(out _, advanceParser: false)))
2410
!type.IsMissing && type.Kind != SyntaxKind.
RefType
&&
2611
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.
RefType
)
2650
if (type.Kind != SyntaxKind.
RefType
&&
2799
if (type.Kind != SyntaxKind.
RefType
)
Syntax\InternalSyntax\TypeSyntax.cs (1)
19
public bool IsRef => Kind == SyntaxKind.
RefType
;
Syntax\SyntaxExtensions.cs (1)
455
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)
CSharpUseImplicitTypeHelper.cs (1)
63
if (type.IsVar || (type.Kind() == SyntaxKind.
RefType
&& ((RefTypeSyntax)type).Type.IsVar))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
601
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1782
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
70
if (variableDeclaration.Type.Kind() == SyntaxKind.
RefType
)
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
147
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)
46
(context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
) || context.IsFunctionPointerTypeArgumentContext);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1884
case SyntaxKind.
RefType
:
2200
case SyntaxKind.
RefType
:
EditAndContinue\SyntaxComparer.cs (1)
513
case SyntaxKind.
RefType
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (172)
Parsing\DeclarationExpressionTests.cs (2)
245
N(SyntaxKind.
RefType
);
308
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
);
1476
N(SyntaxKind.
RefType
);
1495
N(SyntaxKind.
RefType
);
1515
N(SyntaxKind.
RefType
);
1591
N(SyntaxKind.
RefType
);
1684
N(SyntaxKind.
RefType
);
1707
N(SyntaxKind.
RefType
);
1791
N(SyntaxKind.
RefType
);
1825
N(SyntaxKind.
RefType
);
1910
N(SyntaxKind.
RefType
);
1950
N(SyntaxKind.
RefType
);
2003
N(SyntaxKind.
RefType
);
2052
N(SyntaxKind.
RefType
);
2078
N(SyntaxKind.
RefType
);
2138
N(SyntaxKind.
RefType
);
2253
N(SyntaxKind.
RefType
);
2283
N(SyntaxKind.
RefType
);
2359
N(SyntaxKind.
RefType
);
2389
N(SyntaxKind.
RefType
);
2464
N(SyntaxKind.
RefType
);
2490
N(SyntaxKind.
RefType
);
2586
N(SyntaxKind.
RefType
);
2608
N(SyntaxKind.
RefType
);
2674
N(SyntaxKind.
RefType
);
2718
N(SyntaxKind.
RefType
);
2760
N(SyntaxKind.
RefType
);
2809
N(SyntaxKind.
RefType
);
2835
N(SyntaxKind.
RefType
);
2895
N(SyntaxKind.
RefType
);
2934
N(SyntaxKind.
RefType
);
3088
N(SyntaxKind.
RefType
);
3242
N(SyntaxKind.
RefType
);
3412
N(SyntaxKind.
RefType
);
3468
N(SyntaxKind.
RefType
);
3591
N(SyntaxKind.
RefType
);
3872
N(SyntaxKind.
RefType
);
4341
N(SyntaxKind.
RefType
);
4444
N(SyntaxKind.
RefType
);
4518
N(SyntaxKind.
RefType
);
4622
N(SyntaxKind.
RefType
);
4768
N(SyntaxKind.
RefType
);
4843
N(SyntaxKind.
RefType
);
5136
N(SyntaxKind.
RefType
);
5211
N(SyntaxKind.
RefType
);
5351
N(SyntaxKind.
RefType
);
5704
N(SyntaxKind.
RefType
);
5773
N(SyntaxKind.
RefType
);
6256
N(SyntaxKind.
RefType
);
6394
N(SyntaxKind.
RefType
);
6458
N(SyntaxKind.
RefType
);
6840
N(SyntaxKind.
RefType
);
6972
N(SyntaxKind.
RefType
);
7191
N(SyntaxKind.
RefType
);
7251
N(SyntaxKind.
RefType
);
7484
N(SyntaxKind.
RefType
);
7544
N(SyntaxKind.
RefType
);
7654
N(SyntaxKind.
RefType
);
8602
N(SyntaxKind.
RefType
);
8641
N(SyntaxKind.
RefType
);
8716
N(SyntaxKind.
RefType
);
8764
N(SyntaxKind.
RefType
);
8809
N(SyntaxKind.
RefType
);
8850
N(SyntaxKind.
RefType
);
8899
N(SyntaxKind.
RefType
);
8948
N(SyntaxKind.
RefType
);
9083
N(SyntaxKind.
RefType
);
9185
N(SyntaxKind.
RefType
);
9343
N(SyntaxKind.
RefType
);
9388
N(SyntaxKind.
RefType
);
9610
N(SyntaxKind.
RefType
);
9656
N(SyntaxKind.
RefType
);
9736
N(SyntaxKind.
RefType
);
10014
N(SyntaxKind.
RefType
);
10115
N(SyntaxKind.
RefType
);
10412
N(SyntaxKind.
RefType
);
10517
N(SyntaxKind.
RefType
);
10675
N(SyntaxKind.
RefType
);
10717
N(SyntaxKind.
RefType
);
10878
N(SyntaxKind.
RefType
);
10920
N(SyntaxKind.
RefType
);
10994
N(SyntaxKind.
RefType
);
11493
N(SyntaxKind.
RefType
);
11750
N(SyntaxKind.
RefType
);
11819
N(SyntaxKind.
RefType
);
11909
N(SyntaxKind.
RefType
);
12104
N(SyntaxKind.
RefType
);
12188
N(SyntaxKind.
RefType
);
12266
N(SyntaxKind.
RefType
);
12290
N(SyntaxKind.
RefType
);
12376
N(SyntaxKind.
RefType
);
12430
N(SyntaxKind.
RefType
);
12475
N(SyntaxKind.
RefType
);
12560
N(SyntaxKind.
RefType
);
12686
N(SyntaxKind.
RefType
);
12743
N(SyntaxKind.
RefType
);
13057
N(SyntaxKind.
RefType
);
13121
N(SyntaxKind.
RefType
);
13174
N(SyntaxKind.
RefType
);
13239
N(SyntaxKind.
RefType
);
13339
N(SyntaxKind.
RefType
);
13389
N(SyntaxKind.
RefType
);
13636
N(SyntaxKind.
RefType
);
13686
N(SyntaxKind.
RefType
);
13776
N(SyntaxKind.
RefType
);
13967
N(SyntaxKind.
RefType
);
14112
N(SyntaxKind.
RefType
);
14452
N(SyntaxKind.
RefType
);
14581
N(SyntaxKind.
RefType
);
14738
N(SyntaxKind.
RefType
);
14934
N(SyntaxKind.
RefType
);
15231
N(SyntaxKind.
RefType
);
15318
N(SyntaxKind.
RefType
);
Parsing\LambdaReturnTypeParsingTests.cs (29)
2394
N(SyntaxKind.
RefType
);
2442
N(SyntaxKind.
RefType
);
2477
N(SyntaxKind.
RefType
);
2493
N(SyntaxKind.
RefType
);
2531
N(SyntaxKind.
RefType
);
2563
N(SyntaxKind.
RefType
);
2610
N(SyntaxKind.
RefType
);
2661
N(SyntaxKind.
RefType
);
2717
N(SyntaxKind.
RefType
);
2775
N(SyntaxKind.
RefType
);
2823
N(SyntaxKind.
RefType
);
2863
N(SyntaxKind.
RefType
);
2908
N(SyntaxKind.
RefType
);
2955
N(SyntaxKind.
RefType
);
2995
N(SyntaxKind.
RefType
);
3032
N(SyntaxKind.
RefType
);
3074
N(SyntaxKind.
RefType
);
3119
N(SyntaxKind.
RefType
);
3170
N(SyntaxKind.
RefType
);
3215
N(SyntaxKind.
RefType
);
3256
N(SyntaxKind.
RefType
);
3283
N(SyntaxKind.
RefType
);
3323
N(SyntaxKind.
RefType
);
3345
N(SyntaxKind.
RefType
);
3397
N(SyntaxKind.
RefType
);
3450
N(SyntaxKind.
RefType
);
5275
N(SyntaxKind.
RefType
);
5522
N(SyntaxKind.
RefType
);
5746
N(SyntaxKind.
RefType
);
Parsing\RecordParsing.cs (2)
3668
N(SyntaxKind.
RefType
);
3747
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)
482
N(SyntaxKind.
RefType
);
Parsing\StatementParsingTests.cs (5)
1674
N(SyntaxKind.
RefType
);
3145
N(SyntaxKind.
RefType
);
3183
N(SyntaxKind.
RefType
);
3222
N(SyntaxKind.
RefType
);
3260
N(SyntaxKind.
RefType
);
Parsing\TopLevelStatementsParsingTests.cs (2)
2020
N(SyntaxKind.
RefType
);
3101
N(SyntaxKind.
RefType
);
Parsing\UsingDirectiveParsingTests.cs (4)
82
N(SyntaxKind.
RefType
);
388
N(SyntaxKind.
RefType
);
1049
N(SyntaxKind.
RefType
);
1093
N(SyntaxKind.
RefType
);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpUseImplicitTypeHelper.cs (1)
63
if (type.IsVar || (type.Kind() == SyntaxKind.
RefType
&& ((RefTypeSyntax)type).Type.IsVar))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
601
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1782
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))