4 references to ERR_SwitchGoverningExpressionRequiresParens
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1875
case ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
:
Parser\LanguageParser.cs (1)
9125
expression = this.AddError(expression, ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\StatementParsingTests.cs (2)
3900
Diagnostic(ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
, "1+2").WithLocation(1, 8)
4025
Diagnostic(ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
, "(1) + (2)").WithLocation(1, 8)