16 references to ERR_UnexpectedToken
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Deconstruct.cs (2)
932
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, scopedType.ScopedKeyword.GetLocation(), scopedType.ScopedKeyword.ValueText);
938
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, refType.RefKeyword.GetLocation(), refType.RefKeyword.ValueText);
Binder\Binder_Expressions.cs (5)
852
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, firstToken.GetLocation(), firstToken.ValueText);
861
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, firstToken.GetLocation(), firstToken.ValueText);
868
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, firstToken.GetLocation(), firstToken.ValueText);
3208
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, scopedType.ScopedKeyword.GetLocation(), scopedType.ScopedKeyword.ValueText);
3214
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, refType.RefKeyword.GetLocation(), refType.RefKeyword.ValueText);
Binder\Binder_Symbols.cs (2)
493
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, refToken.GetLocation(), refToken.ToString());
507
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, scopedToken.GetLocation(), scopedToken.ToString());
Errors\ErrorFacts.cs (1)
1183
or ErrorCode.
ERR_UnexpectedToken
Parser\LanguageParser.cs (5)
2160
AddTrailingSkippedSyntax(bounds, this.AddError(separatorToken, ErrorCode.
ERR_UnexpectedToken
, SyntaxFacts.GetText(SyntaxKind.CommaToken)));
2232
? this.AddError(this.EatToken(), ErrorCode.
ERR_UnexpectedToken
, SyntaxFacts.GetText(SyntaxKind.QuestionToken))
3472
initializer = this.AddErrorToFirstToken(initializer, ErrorCode.
ERR_UnexpectedToken
, colonToken.Text);
11058
leftOperand.Kind == SyntaxKind.IsPatternExpression ? ErrorCode.
ERR_UnexpectedToken
: ErrorCode.WRN_PrecedenceInversion,
14063
node = this.AddError(node, ErrorCode.
ERR_UnexpectedToken
, trailingTrash[0].ToString());
Symbols\Source\SourceMethodSymbol.cs (1)
36
diagnostics.Add(ErrorCode.
ERR_UnexpectedToken
, refKeyword.GetLocation(), refKeyword.ToString());