72 references to RefTypeSyntax
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
168(localDeclCheck.Declaration.Type is RefTypeSyntax || localDeclCheck.Declaration.Type is ScopedTypeSyntax);
Microsoft.CodeAnalysis.CSharp (20)
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)
Parser\LanguageParser.cs (1)
3094if (propertyType is RefTypeSyntax refType)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
67if (declarationContext is RefTypeSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenRefLocalTests.cs (6)
4045var refVar = tree.GetRoot().DescendantNodes().OfType<RefTypeSyntax>().Single(); 4082var refVar = tree.GetRoot().DescendantNodes().OfType<RefTypeSyntax>().Single(); 4116var refInt = tree.GetRoot().DescendantNodes().OfType<RefTypeSyntax>().Single();
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\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
67if (declarationContext is RefTypeSyntax)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\RefFieldTests.cs (21)
12114if (type is RefTypeSyntax refType) 12178if (type is RefTypeSyntax refType) 12248if (type is RefTypeSyntax refType) 12437if (type is RefTypeSyntax refType) 12469if (type is RefTypeSyntax refType) 12617if (type is RefTypeSyntax refType) 12645if (type is RefTypeSyntax refType) 12848if (type is RefTypeSyntax refType) 12882if (type is RefTypeSyntax refType) 13024if (type is RefTypeSyntax refType) 13052if (type is RefTypeSyntax refType) 13490if (type is RefTypeSyntax refType) 13554if (type is RefTypeSyntax refType) 13631if (type is RefTypeSyntax refType) 13701if (type is RefTypeSyntax refType) 14648if (type is RefTypeSyntax refType) 14892if (type is RefTypeSyntax refType) 14920if (type is RefTypeSyntax refType) 15183if (type is RefTypeSyntax refType) 27599if (type is RefTypeSyntax refType) 27689if (type is RefTypeSyntax refType)
Semantics\RefLocalsAndReturnsTests.cs (1)
5210if (type is RefTypeSyntax refType)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (5)
10457private static RefTypeSyntax GenerateRefType() 11355var node = GenerateRefType(); 11360var newNode = node.WithRefKeyword(node.RefKeyword).WithReadOnlyKeyword(node.ReadOnlyKeyword).WithType(node.Type); 14811var oldNode = GenerateRefType(); 14827var oldNode = GenerateRefType();
Parsing\DeclarationParsingTests.cs (2)
2861var rt = (RefTypeSyntax)ms.ReturnType;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
373(expression.Parent is RefTypeSyntax refType && isValidDeclaration(refType));
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
275name.CheckParent<RefTypeSyntax>(v => v.Type == name) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
53=> type is RefTypeSyntax refType ? refType.Type : type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
95if (node is RefTypeSyntax refType)