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