14 references to ReadOnlyKeyword
Microsoft.CodeAnalysis.CSharp (8)
Syntax.xml.Main.Generated.cs (1)
1561=> node.Update(VisitToken(node.RefKeyword), VisitToken(node.ReadOnlyKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
Syntax.xml.Syntax.Generated.cs (3)
1023if (refKeyword != this.RefKeyword || readOnlyKeyword != this.ReadOnlyKeyword || type != this.Type) 1033public RefTypeSyntax WithRefKeyword(SyntaxToken refKeyword) => Update(refKeyword, this.ReadOnlyKeyword, this.Type); 1035public RefTypeSyntax WithType(TypeSyntax type) => Update(this.RefKeyword, this.ReadOnlyKeyword, type);
Syntax\RefTypeSyntax.cs (1)
13return Update(refKeyword, ReadOnlyKeyword, type);
Syntax\SyntaxNodeExtensions.cs (3)
253refKind = refType.ReadOnlyKeyword.Kind() == SyntaxKind.ReadOnlyKeyword 276if (refType.ReadOnlyKeyword != default) 277MessageID.IDS_FeatureReadOnlyReferences.CheckFeatureAvailability(diagnostics, refType.ReadOnlyKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
11315Assert.Equal(SyntaxKind.None, node.ReadOnlyKeyword.Kind()); 11317var newNode = node.WithRefKeyword(node.RefKeyword).WithReadOnlyKeyword(node.ReadOnlyKeyword).WithType(node.Type);
Parsing\DeclarationParsingTests.cs (1)
2863Assert.Equal(SyntaxKind.ReadOnlyKeyword, rt.ReadOnlyKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344if (variableDeclarationType is RefTypeSyntax refType && refType.ReadOnlyKeyword != default)