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