19 references to ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (8)
235AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 241AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 900AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 921AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 948AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 956AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1090AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1191AddDiagnostic(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"));