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