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)
1517or ErrorCode.ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4588Assert.Equal((int)ErrorCode.ERR_SwitchNeedsNumber, parsedArgs.Errors.First().Code); 4650Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("filealign")); 5365Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5370Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5384Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror")); 5398Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror+")); 5403Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror-")); 5408Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5413Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5418Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warn"));