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