4 references to ERR_SwitchGoverningExpressionRequiresParens
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1932
or ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
Parser\LanguageParser.cs (1)
9875
expression = this.AddError(expression, ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\StatementParsingTests.cs (2)
3901
Diagnostic(ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
, "1+2").WithLocation(1, 8)
4026
Diagnostic(ErrorCode.
ERR_SwitchGoverningExpressionRequiresParens
, "(1) + (2)").WithLocation(1, 8)