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)
285
N(SyntaxKind.
RefType
);
367
N(SyntaxKind.
RefType
);
417
N(SyntaxKind.
RefType
);
459
N(SyntaxKind.
RefType
);
488
N(SyntaxKind.
RefType
);
1489
N(SyntaxKind.
RefType
);
1508
N(SyntaxKind.
RefType
);
1528
N(SyntaxKind.
RefType
);
1604
N(SyntaxKind.
RefType
);
1697
N(SyntaxKind.
RefType
);
1720
N(SyntaxKind.
RefType
);
1804
N(SyntaxKind.
RefType
);
1838
N(SyntaxKind.
RefType
);
1923
N(SyntaxKind.
RefType
);
1963
N(SyntaxKind.
RefType
);
2016
N(SyntaxKind.
RefType
);
2065
N(SyntaxKind.
RefType
);
2091
N(SyntaxKind.
RefType
);
2151
N(SyntaxKind.
RefType
);
2266
N(SyntaxKind.
RefType
);
2296
N(SyntaxKind.
RefType
);
2372
N(SyntaxKind.
RefType
);
2402
N(SyntaxKind.
RefType
);
2477
N(SyntaxKind.
RefType
);
2503
N(SyntaxKind.
RefType
);
2599
N(SyntaxKind.
RefType
);
2621
N(SyntaxKind.
RefType
);
2687
N(SyntaxKind.
RefType
);
2731
N(SyntaxKind.
RefType
);
2773
N(SyntaxKind.
RefType
);
2822
N(SyntaxKind.
RefType
);
2848
N(SyntaxKind.
RefType
);
2908
N(SyntaxKind.
RefType
);
2947
N(SyntaxKind.
RefType
);
3101
N(SyntaxKind.
RefType
);
3255
N(SyntaxKind.
RefType
);
3425
N(SyntaxKind.
RefType
);
3481
N(SyntaxKind.
RefType
);
3604
N(SyntaxKind.
RefType
);
3827
N(SyntaxKind.
RefType
);
4209
N(SyntaxKind.
RefType
);
4302
N(SyntaxKind.
RefType
);
4357
N(SyntaxKind.
RefType
);
4451
N(SyntaxKind.
RefType
);
4578
N(SyntaxKind.
RefType
);
4653
N(SyntaxKind.
RefType
);
4946
N(SyntaxKind.
RefType
);
5021
N(SyntaxKind.
RefType
);
5161
N(SyntaxKind.
RefType
);
5456
N(SyntaxKind.
RefType
);
5525
N(SyntaxKind.
RefType
);
6008
N(SyntaxKind.
RefType
);
6146
N(SyntaxKind.
RefType
);
6210
N(SyntaxKind.
RefType
);
6570
N(SyntaxKind.
RefType
);
6702
N(SyntaxKind.
RefType
);
6910
N(SyntaxKind.
RefType
);
6970
N(SyntaxKind.
RefType
);
7203
N(SyntaxKind.
RefType
);
7263
N(SyntaxKind.
RefType
);
7373
N(SyntaxKind.
RefType
);
8321
N(SyntaxKind.
RefType
);
8360
N(SyntaxKind.
RefType
);
8435
N(SyntaxKind.
RefType
);
8483
N(SyntaxKind.
RefType
);
8528
N(SyntaxKind.
RefType
);
8569
N(SyntaxKind.
RefType
);
8618
N(SyntaxKind.
RefType
);
8667
N(SyntaxKind.
RefType
);
8802
N(SyntaxKind.
RefType
);
8904
N(SyntaxKind.
RefType
);
9062
N(SyntaxKind.
RefType
);
9107
N(SyntaxKind.
RefType
);
9329
N(SyntaxKind.
RefType
);
9375
N(SyntaxKind.
RefType
);
9455
N(SyntaxKind.
RefType
);
9733
N(SyntaxKind.
RefType
);
9834
N(SyntaxKind.
RefType
);
10117
N(SyntaxKind.
RefType
);
10222
N(SyntaxKind.
RefType
);
10373
N(SyntaxKind.
RefType
);
10415
N(SyntaxKind.
RefType
);
10576
N(SyntaxKind.
RefType
);
10618
N(SyntaxKind.
RefType
);
10692
N(SyntaxKind.
RefType
);
11191
N(SyntaxKind.
RefType
);
11448
N(SyntaxKind.
RefType
);
11517
N(SyntaxKind.
RefType
);
11607
N(SyntaxKind.
RefType
);
11802
N(SyntaxKind.
RefType
);
11886
N(SyntaxKind.
RefType
);
11964
N(SyntaxKind.
RefType
);
11988
N(SyntaxKind.
RefType
);
12074
N(SyntaxKind.
RefType
);
12128
N(SyntaxKind.
RefType
);
12173
N(SyntaxKind.
RefType
);
12258
N(SyntaxKind.
RefType
);
12373
N(SyntaxKind.
RefType
);
12430
N(SyntaxKind.
RefType
);
12711
N(SyntaxKind.
RefType
);
12771
N(SyntaxKind.
RefType
);
12817
N(SyntaxKind.
RefType
);
12878
N(SyntaxKind.
RefType
);
12971
N(SyntaxKind.
RefType
);
13021
N(SyntaxKind.
RefType
);
13268
N(SyntaxKind.
RefType
);
13318
N(SyntaxKind.
RefType
);
13408
N(SyntaxKind.
RefType
);
13588
N(SyntaxKind.
RefType
);
13733
N(SyntaxKind.
RefType
);
14073
N(SyntaxKind.
RefType
);
14202
N(SyntaxKind.
RefType
);
14359
N(SyntaxKind.
RefType
);
14555
N(SyntaxKind.
RefType
);
14851
N(SyntaxKind.
RefType
);
14937
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)
460
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)
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))