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