19 references to ERR_SwitchNeedsNumber
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (8)
234AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 240AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 898AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 919AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 946AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 954AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1088AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1189AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name);
Errors\ErrorFacts.cs (1)
1446case ErrorCode.ERR_SwitchNeedsNumber:
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (10)
4393Assert.Equal((int)ErrorCode.ERR_SwitchNeedsNumber, parsedArgs.Errors.First().Code); 4455Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("filealign")); 5141Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5146Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("nowarn")); 5160Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror")); 5174Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror+")); 5179Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warnaserror-")); 5184Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5189Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("w")); 5194Diagnostic(ErrorCode.ERR_SwitchNeedsNumber).WithArguments("warn"));