1 override of GetExpectedTokenError
Microsoft.CodeAnalysis.CSharp (1)
Parser\DocumentationCommentParser.cs (1)
810protected override SyntaxDiagnosticInfo GetExpectedTokenError(SyntaxKind expected, SyntaxKind actual)
5 references to GetExpectedTokenError
Microsoft.CodeAnalysis.CSharp (5)
Parser\LanguageParser.cs (3)
999type = WithAdditionalDiagnostics(CreateMissingIdentifierName(), GetExpectedTokenError(SyntaxKind.IdentifierToken, this.CurrentToken.Kind)); 1826closeBrace = WithAdditionalDiagnostics(closeBrace, this.GetExpectedTokenError(SyntaxKind.CloseBraceToken, this.CurrentToken.Kind)); 7696var lessThanTokenError = WithAdditionalDiagnostics(SyntaxFactory.MissingToken(SyntaxKind.LessThanToken), GetExpectedTokenError(SyntaxKind.LessThanToken, SyntaxKind.None));
Parser\SyntaxParser.cs (2)
558token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(expected, actual)); 614token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(kind, token.Kind));