1 override of GetExpectedTokenError
Microsoft.CodeAnalysis.CSharp (1)
Parser\DocumentationCommentParser.cs (1)
815protected override SyntaxDiagnosticInfo GetExpectedTokenError(SyntaxKind expected, SyntaxKind actual)
6 references to GetExpectedTokenError
Microsoft.CodeAnalysis.CSharp (6)
Parser\LanguageParser.cs (4)
823type = WithAdditionalDiagnostics(CreateMissingIdentifierName(), GetExpectedTokenError(SyntaxKind.IdentifierToken, this.CurrentToken.Kind)); 1554closeBrace = WithAdditionalDiagnostics(closeBrace, this.GetExpectedTokenError(SyntaxKind.CloseBraceToken, this.CurrentToken.Kind)); 4410GetExpectedTokenError(kind, t1.Kind)); 7181var lessThanTokenError = WithAdditionalDiagnostics(SyntaxFactory.MissingToken(SyntaxKind.LessThanToken), GetExpectedTokenError(SyntaxKind.LessThanToken, SyntaxKind.None));
Parser\SyntaxParser.cs (2)
522token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(expected, actual)); 578token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(kind, token.Kind));