36 references to ERR_BadOperatorSyntax
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1175
case ErrorCode.
ERR_BadOperatorSyntax
:
Parser\LanguageParser.cs (2)
3489
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.
ERR_BadOperatorSyntax
, SyntaxFacts.GetText(SyntaxKind.PlusToken));
3495
type = this.AddError(type, ErrorCode.
ERR_BadOperatorSyntax
, SyntaxFacts.GetText(SyntaxKind.PlusToken));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Parsing\AsyncParsingTests.cs (2)
1686
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "partial").WithArguments("+").WithLocation(4, 11),
1803
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "partial").WithArguments("+").WithLocation(4, 11),
Parsing\MemberDeclarationParsingTests.cs (24)
2437
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2462
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2486
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
2562
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2587
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2610
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3322
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3347
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3370
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3450
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3475
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3498
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
4357
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4379
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4399
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
4474
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4496
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4516
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5201
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5223
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5243
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5322
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5344
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5364
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
Parsing\ParserErrorMessageTests.cs (6)
2858
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(4, 19),
2913
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(4, 19),
2960
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(4, 19),
4672
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(3, 19),
4725
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(3, 19),
4766
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(3, 19),
Parsing\TopLevelStatementsParsingTests.cs (1)
242
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "fg").WithArguments("+").WithLocation(2, 1),