15 references to RefKeyword
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Deconstruct.cs (4)
831
diagnostics.Add(ErrorCode.ERR_DeconstructVariableCannotBeByRef, refType.
RefKeyword
.GetLocation());
891
diagnostics.Add(ErrorCode.ERR_DeconstructVariableCannotBeByRef, refType.
RefKeyword
.GetLocation());
941
diagnostics.Add(ErrorCode.ERR_UnexpectedToken, refType.
RefKeyword
.GetLocation(), refType.
RefKeyword
.ValueText);
Binder\Binder_Expressions.cs (2)
3266
diagnostics.Add(ErrorCode.ERR_UnexpectedToken, refType.
RefKeyword
.GetLocation(), refType.
RefKeyword
.ValueText);
Binder\Binder_Symbols.cs (1)
492
var refToken = refTypeSyntax.
RefKeyword
;
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)
1034
public RefTypeSyntax WithReadOnlyKeyword(SyntaxToken readOnlyKeyword) => Update(this.
RefKeyword
, readOnlyKeyword, this.Type);
1035
public RefTypeSyntax WithType(TypeSyntax type) => Update(this.
RefKeyword
, this.ReadOnlyKeyword, type);
Syntax\SyntaxNodeExtensions.cs (1)
274
MessageID.IDS_FeatureRefLocalsReturns.CheckFeatureAvailability(diagnostics, refType.
RefKeyword
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
11314
Assert.Equal(SyntaxKind.RefKeyword, node.
RefKeyword
.Kind());
11317
var newNode = node.WithRefKeyword(node.
RefKeyword
).WithReadOnlyKeyword(node.ReadOnlyKeyword).WithType(node.Type);
Parsing\DeclarationParsingTests.cs (1)
2862
Assert.Equal(SyntaxKind.RefKeyword, rt.
RefKeyword
.Kind());