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