19 references to ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (8)
238AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 244AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 930AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 951AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 978AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 986AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1120AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1221AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name);
Errors\ErrorFacts.cs (1)
1518or ErrorCode.ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4589Assert.Equal((int)ErrorCode.ERR_SwitchNeedsNumber, parsedArgs.Errors.First().Code); 4651Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("filealign")); 5366Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5371Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5385Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror")); 5399Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror+")); 5404Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror-")); 5409Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5414Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5419Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warn"));