19 references to ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (8)
237AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 243AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 917AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 938AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 965AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 973AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1107AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1208AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name);
Errors\ErrorFacts.cs (1)
1507or ErrorCode.ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4574Assert.Equal((int)ErrorCode.ERR_SwitchNeedsNumber, parsedArgs.Errors.First().Code); 4636Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("filealign")); 5351Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5356Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5370Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror")); 5384Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror+")); 5389Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror-")); 5394Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5399Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5404Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warn"));