7 references to ReadOnlyKeyword
Microsoft.CodeAnalysis.CSharp (7)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2155
=> node.Update(VisitToken(node.RefKindKeyword), VisitToken(node.
ReadOnlyKeyword
), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
_generated\2\Syntax.xml.Syntax.Generated.cs (3)
14807
if (refKindKeyword != this.RefKindKeyword || readOnlyKeyword != this.
ReadOnlyKeyword
|| type != this.Type)
14817
public CrefParameterSyntax WithRefKindKeyword(SyntaxToken refKindKeyword) => Update(refKindKeyword, this.
ReadOnlyKeyword
, this.Type);
14819
public CrefParameterSyntax WithType(TypeSyntax type) => Update(this.RefKindKeyword, this.
ReadOnlyKeyword
, type);
Binder\Binder_Crefs.cs (2)
1137
if (refKind == RefKind.Ref && parameter.
ReadOnlyKeyword
.IsKind(SyntaxKind.ReadOnlyKeyword))
1139
CheckFeatureAvailability(parameter.
ReadOnlyKeyword
, MessageID.IDS_FeatureRefReadonlyParameters, diagnostics, forceWarning: true);
Syntax\CrefParameterSyntax.cs (1)
28
return this.Update(refKindKeyword: refKindKeyword, readOnlyKeyword: this.
ReadOnlyKeyword
, type: type);