1 instantiation of RefTypeSyntax
Microsoft.CodeAnalysis.CSharp (1)
_generated\1\Syntax.xml.Internal.Generated.cs (1)
1657internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.RefTypeSyntax(this, parent, position);
46 references to RefTypeSyntax
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
168(localDeclCheck.Declaration.Type is RefTypeSyntax || localDeclCheck.Declaration.Type is ScopedTypeSyntax);
Microsoft.CodeAnalysis.CSharp (30)
_generated\0\Syntax.xml.Main.Generated.cs (6)
73public virtual TResult? VisitRefType(RefTypeSyntax node) => this.DefaultVisit(node); 821public virtual void VisitRefType(RefTypeSyntax node) => this.DefaultVisit(node); 1568public override SyntaxNode? VisitRefType(RefTypeSyntax node) 2511public static RefTypeSyntax RefType(SyntaxToken refKeyword, SyntaxToken readOnlyKeyword, TypeSyntax type) 2521return (RefTypeSyntax)Syntax.InternalSyntax.SyntaxFactory.RefType((Syntax.InternalSyntax.SyntaxToken)refKeyword.Node!, (Syntax.InternalSyntax.SyntaxToken?)readOnlyKeyword.Node, (Syntax.InternalSyntax.TypeSyntax)type.Green).CreateRed(); 2525public static RefTypeSyntax RefType(TypeSyntax type)
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
1021public RefTypeSyntax Update(SyntaxToken refKeyword, SyntaxToken readOnlyKeyword, TypeSyntax type) 1025var newNode = SyntaxFactory.RefType(refKeyword, readOnlyKeyword, type); 1033public RefTypeSyntax WithRefKeyword(SyntaxToken refKeyword) => Update(refKeyword, this.ReadOnlyKeyword, this.Type); 1034public RefTypeSyntax WithReadOnlyKeyword(SyntaxToken readOnlyKeyword) => Update(this.RefKeyword, readOnlyKeyword, this.Type); 1035public RefTypeSyntax WithType(TypeSyntax type) => Update(this.RefKeyword, this.ReadOnlyKeyword, type);
Binder\Binder_Deconstruct.cs (3)
831if (typeSyntax is RefTypeSyntax refType) 891if (typeSyntax is RefTypeSyntax refType) 941if (typeSyntax is RefTypeSyntax refType)
Binder\Binder_Expressions.cs (3)
3243if (typeSyntax is RefTypeSyntax refType) 3287if (typeSyntax is RefTypeSyntax refType) 3338if (typeSyntax is RefTypeSyntax refType)
Binder\Binder_Symbols.cs (2)
493var refTypeSyntax = (RefTypeSyntax)syntax;
Binder\ForEachLoopBinder.cs (1)
299if (typeSyntax is RefTypeSyntax refType)
Binder\ForLoopBinder.cs (1)
77if (type is RefTypeSyntax)
Syntax\RefTypeSyntax.cs (2)
11public RefTypeSyntax Update(SyntaxToken refKeyword, TypeSyntax type) 23public static RefTypeSyntax RefType(SyntaxToken refKeyword, TypeSyntax type)
Syntax\SyntaxExtensions.cs (2)
455var refTypeSyntax = (RefTypeSyntax)type;
Syntax\SyntaxFacts.cs (1)
154return ((RefTypeSyntax)parent).Type == node;
Syntax\SyntaxNodeExtensions.cs (4)
229/// For callers that just want to unwrap a <see cref="RefTypeSyntax"/> and don't care if ref/readonly was there. 252var refType = (RefTypeSyntax)syntax; 303if (parentNode is RefTypeSyntax refType && refType.Type == syntax)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
67if (declarationContext is RefTypeSyntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
96if (typeParent is RefTypeSyntax refType)
ReplaceConditionalWithStatements\CSharpReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
43if (localDeclarationStatement.Declaration.Type is RefTypeSyntax)
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
475else if (type is RefTypeSyntax refType)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
67if (declarationContext is RefTypeSyntax)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
275name.CheckParent<RefTypeSyntax>(v => v.Type == name) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)