31 references to RefType
Microsoft.CodeAnalysis.CSharp (18)
_generated\1\Syntax.xml.Internal.Generated.cs (4)
28967
var cached = CSharpSyntaxNodeCache.TryGetNode((int)SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, this.context, out hash);
28970
var result = new RefTypeSyntax(SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, this.context);
34394
var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type, out hash);
34397
var result = new RefTypeSyntax(SyntaxKind.
RefType
, refKeyword, readOnlyKeyword, type);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
988
/// <item><description><see cref="SyntaxKind.
RefType
"/></description></item>
Binder\Binder_Expressions.cs (1)
852
case SyntaxKind.
RefType
:
Binder\Binder_Symbols.cs (1)
490
case SyntaxKind.
RefType
:
Compilation\CSharpSemanticModel.cs (1)
103
case SyntaxKind.
RefType
:
Compilation\MemberSemanticModel.cs (1)
2341
case SyntaxKind.
RefType
:
Parser\LanguageParser.cs (5)
2771
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.
RefType
|| !IsOperatorStart(out _, advanceParser: false)))
2863
!type.IsMissing && type.Kind != SyntaxKind.
RefType
&&
3077
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.
RefType
)
3167
if (type.Kind != SyntaxKind.
RefType
&&
3342
if (type.Kind != SyntaxKind.
RefType
)
Syntax\InternalSyntax\TypeSyntax.cs (1)
19
public bool IsRef => Kind == SyntaxKind.
RefType
;
Syntax\SyntaxExtensions.cs (1)
454
case SyntaxKind.
RefType
:
Syntax\SyntaxFacts.cs (1)
153
case
RefType
:
Syntax\SyntaxNodeExtensions.cs (1)
250
if (syntax.Kind() == SyntaxKind.
RefType
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1806
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
69
if (variableDeclaration.Type.Kind() == SyntaxKind.
RefType
)
Completion\CompletionProviders\CompletionUtilities.cs (1)
341
if (prevToken.Kind() is SyntaxKind.RefKeyword or SyntaxKind.ReadOnlyKeyword && prevToken.Parent.IsKind(SyntaxKind.
RefType
))
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
73
context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
);
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
43
(context.TargetToken.Parent.IsKind(SyntaxKind.
RefType
) ||
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1914
case SyntaxKind.
RefType
:
2240
case SyntaxKind.
RefType
:
EditAndContinue\SyntaxComparer.cs (1)
516
case SyntaxKind.
RefType
:
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1806
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
602
return incompleteMember.Type.IsKind(SyntaxKind.
RefType
);
1806
if (parent is (kind: SyntaxKind.
RefType
or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement))