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