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