37 references to ERR_BadOperatorSyntax
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
1239
or ErrorCode.
ERR_BadOperatorSyntax
Parser\LanguageParser.cs (3)
3943
AddError(type, ErrorCode.
ERR_BadOperatorSyntax
, firstToken.Text));
3985
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.
ERR_BadOperatorSyntax
, SyntaxFacts.GetText(SyntaxKind.PlusToken));
3991
type = this.AddError(type, ErrorCode.
ERR_BadOperatorSyntax
, SyntaxFacts.GetText(SyntaxKind.PlusToken));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Parsing\AsyncParsingTests.cs (2)
1677
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "partial").WithArguments("implicit").WithLocation(4, 11),
1788
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "partial").WithArguments("explicit").WithLocation(4, 11),
Parsing\MemberDeclarationParsingTests.cs (24)
2434
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2459
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2483
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
2559
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2584
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2607
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3319
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3344
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3367
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3447
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3472
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3495
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
4353
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4375
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4395
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
4470
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4492
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4512
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5197
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5219
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5239
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5318
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5340
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5360
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
Parsing\ParserErrorMessageTests.cs (6)
2858
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("explicit").WithLocation(4, 19),
2888
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("explicit").WithLocation(4, 19),
2905
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("explicit").WithLocation(4, 19),
4593
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("implicit").WithLocation(3, 19),
4621
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("implicit").WithLocation(3, 19),
4629
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("implicit").WithLocation(3, 19),
Parsing\TopLevelStatementsParsingTests.cs (1)
242
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "fg").WithArguments("+").WithLocation(2, 1),