198 references to RefType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Expressions.cs (1)
778case SyntaxKind.RefType:
Binder\Binder_Symbols.cs (1)
476case SyntaxKind.RefType:
Compilation\CSharpSemanticModel.cs (1)
102case SyntaxKind.RefType:
Compilation\MemberSemanticModel.cs (1)
2273case SyntaxKind.RefType:
Parser\LanguageParser.cs (5)
2316if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false))) 2410!type.IsMissing && type.Kind != SyntaxKind.RefType && 2611if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.RefType) 2650if (type.Kind != SyntaxKind.RefType && 2799if (type.Kind != SyntaxKind.RefType)
Syntax\InternalSyntax\TypeSyntax.cs (1)
19public bool IsRef => Kind == SyntaxKind.RefType;
Syntax\SyntaxExtensions.cs (1)
455case SyntaxKind.RefType:
Syntax\SyntaxFacts.cs (1)
153case RefType:
Syntax\SyntaxNodeExtensions.cs (1)
250if (syntax.Kind() == SyntaxKind.RefType)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpUseImplicitTypeHelper.cs (1)
63if (type.IsVar || (type.Kind() == SyntaxKind.RefType && ((RefTypeSyntax)type).Type.IsVar))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
601return incompleteMember.Type.IsKind(SyntaxKind.RefType); 1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
70if (variableDeclaration.Type.Kind() == SyntaxKind.RefType)
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
147if (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)
46(context.TargetToken.Parent.IsKind(SyntaxKind.RefType) || context.IsFunctionPointerTypeArgumentContext);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1884case SyntaxKind.RefType: 2200case SyntaxKind.RefType:
EditAndContinue\SyntaxComparer.cs (1)
513case SyntaxKind.RefType:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (172)
Parsing\DeclarationExpressionTests.cs (2)
245N(SyntaxKind.RefType); 308N(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); 1476N(SyntaxKind.RefType); 1495N(SyntaxKind.RefType); 1515N(SyntaxKind.RefType); 1591N(SyntaxKind.RefType); 1684N(SyntaxKind.RefType); 1707N(SyntaxKind.RefType); 1791N(SyntaxKind.RefType); 1825N(SyntaxKind.RefType); 1910N(SyntaxKind.RefType); 1950N(SyntaxKind.RefType); 2003N(SyntaxKind.RefType); 2052N(SyntaxKind.RefType); 2078N(SyntaxKind.RefType); 2138N(SyntaxKind.RefType); 2253N(SyntaxKind.RefType); 2283N(SyntaxKind.RefType); 2359N(SyntaxKind.RefType); 2389N(SyntaxKind.RefType); 2464N(SyntaxKind.RefType); 2490N(SyntaxKind.RefType); 2586N(SyntaxKind.RefType); 2608N(SyntaxKind.RefType); 2674N(SyntaxKind.RefType); 2718N(SyntaxKind.RefType); 2760N(SyntaxKind.RefType); 2809N(SyntaxKind.RefType); 2835N(SyntaxKind.RefType); 2895N(SyntaxKind.RefType); 2934N(SyntaxKind.RefType); 3088N(SyntaxKind.RefType); 3242N(SyntaxKind.RefType); 3412N(SyntaxKind.RefType); 3468N(SyntaxKind.RefType); 3591N(SyntaxKind.RefType); 3872N(SyntaxKind.RefType); 4341N(SyntaxKind.RefType); 4444N(SyntaxKind.RefType); 4518N(SyntaxKind.RefType); 4622N(SyntaxKind.RefType); 4768N(SyntaxKind.RefType); 4843N(SyntaxKind.RefType); 5136N(SyntaxKind.RefType); 5211N(SyntaxKind.RefType); 5351N(SyntaxKind.RefType); 5704N(SyntaxKind.RefType); 5773N(SyntaxKind.RefType); 6256N(SyntaxKind.RefType); 6394N(SyntaxKind.RefType); 6458N(SyntaxKind.RefType); 6840N(SyntaxKind.RefType); 6972N(SyntaxKind.RefType); 7191N(SyntaxKind.RefType); 7251N(SyntaxKind.RefType); 7484N(SyntaxKind.RefType); 7544N(SyntaxKind.RefType); 7654N(SyntaxKind.RefType); 8602N(SyntaxKind.RefType); 8641N(SyntaxKind.RefType); 8716N(SyntaxKind.RefType); 8764N(SyntaxKind.RefType); 8809N(SyntaxKind.RefType); 8850N(SyntaxKind.RefType); 8899N(SyntaxKind.RefType); 8948N(SyntaxKind.RefType); 9083N(SyntaxKind.RefType); 9185N(SyntaxKind.RefType); 9343N(SyntaxKind.RefType); 9388N(SyntaxKind.RefType); 9610N(SyntaxKind.RefType); 9656N(SyntaxKind.RefType); 9736N(SyntaxKind.RefType); 10014N(SyntaxKind.RefType); 10115N(SyntaxKind.RefType); 10412N(SyntaxKind.RefType); 10517N(SyntaxKind.RefType); 10675N(SyntaxKind.RefType); 10717N(SyntaxKind.RefType); 10878N(SyntaxKind.RefType); 10920N(SyntaxKind.RefType); 10994N(SyntaxKind.RefType); 11493N(SyntaxKind.RefType); 11750N(SyntaxKind.RefType); 11819N(SyntaxKind.RefType); 11909N(SyntaxKind.RefType); 12104N(SyntaxKind.RefType); 12188N(SyntaxKind.RefType); 12266N(SyntaxKind.RefType); 12290N(SyntaxKind.RefType); 12376N(SyntaxKind.RefType); 12430N(SyntaxKind.RefType); 12475N(SyntaxKind.RefType); 12560N(SyntaxKind.RefType); 12686N(SyntaxKind.RefType); 12743N(SyntaxKind.RefType); 13057N(SyntaxKind.RefType); 13121N(SyntaxKind.RefType); 13174N(SyntaxKind.RefType); 13239N(SyntaxKind.RefType); 13339N(SyntaxKind.RefType); 13389N(SyntaxKind.RefType); 13636N(SyntaxKind.RefType); 13686N(SyntaxKind.RefType); 13776N(SyntaxKind.RefType); 13967N(SyntaxKind.RefType); 14112N(SyntaxKind.RefType); 14452N(SyntaxKind.RefType); 14581N(SyntaxKind.RefType); 14738N(SyntaxKind.RefType); 14934N(SyntaxKind.RefType); 15231N(SyntaxKind.RefType); 15318N(SyntaxKind.RefType);
Parsing\LambdaReturnTypeParsingTests.cs (29)
2394N(SyntaxKind.RefType); 2442N(SyntaxKind.RefType); 2477N(SyntaxKind.RefType); 2493N(SyntaxKind.RefType); 2531N(SyntaxKind.RefType); 2563N(SyntaxKind.RefType); 2610N(SyntaxKind.RefType); 2661N(SyntaxKind.RefType); 2717N(SyntaxKind.RefType); 2775N(SyntaxKind.RefType); 2823N(SyntaxKind.RefType); 2863N(SyntaxKind.RefType); 2908N(SyntaxKind.RefType); 2955N(SyntaxKind.RefType); 2995N(SyntaxKind.RefType); 3032N(SyntaxKind.RefType); 3074N(SyntaxKind.RefType); 3119N(SyntaxKind.RefType); 3170N(SyntaxKind.RefType); 3215N(SyntaxKind.RefType); 3256N(SyntaxKind.RefType); 3283N(SyntaxKind.RefType); 3323N(SyntaxKind.RefType); 3345N(SyntaxKind.RefType); 3397N(SyntaxKind.RefType); 3450N(SyntaxKind.RefType); 5275N(SyntaxKind.RefType); 5522N(SyntaxKind.RefType); 5746N(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)
482N(SyntaxKind.RefType);
Parsing\StatementParsingTests.cs (5)
1674N(SyntaxKind.RefType); 3145N(SyntaxKind.RefType); 3183N(SyntaxKind.RefType); 3222N(SyntaxKind.RefType); 3260N(SyntaxKind.RefType);
Parsing\TopLevelStatementsParsingTests.cs (2)
2020N(SyntaxKind.RefType); 3101N(SyntaxKind.RefType);
Parsing\UsingDirectiveParsingTests.cs (4)
82N(SyntaxKind.RefType); 388N(SyntaxKind.RefType); 1049N(SyntaxKind.RefType); 1093N(SyntaxKind.RefType);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpUseImplicitTypeHelper.cs (1)
63if (type.IsVar || (type.Kind() == SyntaxKind.RefType && ((RefTypeSyntax)type).Type.IsVar))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
601return incompleteMember.Type.IsKind(SyntaxKind.RefType); 1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))