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