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)
1513or ErrorCode.ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4585Assert.Equal((int)ErrorCode.ERR_SwitchNeedsNumber, parsedArgs.Errors.First().Code); 4647Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("filealign")); 5362Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5367Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5381Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror")); 5395Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror+")); 5400Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror-")); 5405Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5410Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5415Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warn"));