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