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()); 931AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 952AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 979AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 987AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1121AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1222AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name);
Errors\ErrorFacts.cs (1)
1508or 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"));