8 references to VarKeyword
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (2)
1332Symbol foundSymbol = BindTypeOrAliasOrKeyword(node.VarKeyword, node, diagnostics, out bool isVar).Symbol; 1336diagnostics.Add(ErrorCode.ERR_VarMayNotBindToType, node.VarKeyword.GetLocation(), foundSymbol.ToDisplayString());
Syntax.xml.Main.Generated.cs (1)
1777=> node.Update(VisitToken(node.VarKeyword), (VariableDesignationSyntax?)Visit(node.Designation) ?? throw new ArgumentNullException("designation"));
Syntax.xml.Syntax.Generated.cs (2)
5315if (varKeyword != this.VarKeyword || designation != this.Designation) 5326public VarPatternSyntax WithDesignation(VariableDesignationSyntax designation) => Update(this.VarKeyword, designation);
Microsoft.CodeAnalysis.CSharp.Features (1)
InlineHints\CSharpInlineTypeHintsService.cs (1)
58? CreateTypeHint(type, varPattern.VarKeyword, variableDesignation.Identifier)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12175Assert.Equal(SyntaxKind.VarKeyword, node.VarKeyword.Kind()); 12177var newNode = node.WithVarKeyword(node.VarKeyword).WithDesignation(node.Designation);