37 references to ERR_BadOperatorSyntax
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
1237
or ErrorCode.
ERR_BadOperatorSyntax
Parser\LanguageParser.cs (3)
3859
AddError(type, ErrorCode.
ERR_BadOperatorSyntax
, firstToken.Text));
3901
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.
ERR_BadOperatorSyntax
, SyntaxFacts.GetText(SyntaxKind.PlusToken));
3907
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)
2403
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2428
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2452
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
2528
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2553
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
2576
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3288
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3313
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3336
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
3416
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3441
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 18),
3464
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 8),
4322
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4344
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4364
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
4439
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4461
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
4481
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5166
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5188
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5208
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 1),
5287
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5309
Diagnostic(ErrorCode.
ERR_BadOperatorSyntax
, "int").WithArguments("+").WithLocation(1, 11),
5329
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),