11 references to ReadOnlyKeyword
Microsoft.CodeAnalysis.CSharp (8)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1569
=> node.Update(VisitToken(node.RefKeyword), VisitToken(node.
ReadOnlyKeyword
), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
_generated\2\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344
if (variableDeclarationType is RefTypeSyntax refType && refType.
ReadOnlyKeyword
!= default)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344
if (variableDeclarationType is RefTypeSyntax refType && refType.
ReadOnlyKeyword
!= default)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
344
if (variableDeclarationType is RefTypeSyntax refType && refType.
ReadOnlyKeyword
!= default)