51 references to ERR_InvalidSwitchValue
Microsoft.CodeAnalysis.VisualBasic (20)
CommandLine\VisualBasicCommandLineParser.vb (10)
291
AddDiagnostic(diagnostics, ERRID.
ERR_InvalidSwitchValue
, "optioncompare", value)
721
AddDiagnostic(diagnostics, ERRID.
ERR_InvalidSwitchValue
, "debug", value)
871
AddDiagnostic(diagnostics, ERRID.
ERR_InvalidSwitchValue
, "langversion", value)
1657
AddDiagnostic(diagnostics, ERRID.
ERR_InvalidSwitchValue
, optionName, value)
1753
AddDiagnostic(diagnostics, ERRID.
ERR_InvalidSwitchValue
, name, nullStringText)
2147
AddDiagnostic(errors, ERRID.
ERR_InvalidSwitchValue
, name, value)
2167
AddDiagnostic(errors, ERRID.
ERR_InvalidSwitchValue
, name, value)
2169
AddDiagnostic(errors, ERRID.
ERR_InvalidSwitchValue
, name, value)
2202
AddDiagnostic(errors, ERRID.
ERR_InvalidSwitchValue
, name, value.ToString())
2259
AddDiagnostic(errors, ERRID.
ERR_InvalidSwitchValue
, "recurse", path)
Errors\ErrorFacts.vb (1)
35
ERRID.
ERR_InvalidSwitchValue
,
Errors\MessageProvider.vb (1)
298
Return ERRID.
ERR_InvalidSwitchValue
VisualBasicCompilationOptions.vb (8)
1035
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(Platform), Platform.ToString()))
1043
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(OutputKind), OutputKind.ToString()))
1047
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(OptimizationLevel), OptimizationLevel.ToString()))
1051
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(ScriptClassName), If(ScriptClassName, "Nothing")))
1055
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(MainTypeName), MainTypeName))
1059
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(RootNamespace), RootNamespace))
1063
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(OptionStrict), OptionStrict.ToString()))
1072
builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.
ERR_InvalidSwitchValue
, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (28)
CommandLineTests.vb (28)
1211
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1232
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", "publi"))
1257
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1262
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1274
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1279
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1284
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1289
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1294
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1313
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1325
diags.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("resource", " "))
1569
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("langversion", "8"))
1573
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("langversion", CStr(LanguageVersion.VisualBasic12 + 1)))
2936
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("target", "xyz"))
2987
Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("target", "xyz"),
3125
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("debug", ""))
3128
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("debug", "+"))
3131
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("debug", "invalid"))
4776
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("platform", "abcdef"))
4839
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("filealign", "0"))
4841
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("filealign", "0x"))
4843
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("filealign", "0x0"))
4845
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("filealign", "-1"))
4847
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("filealign", "-0x100"))
4931
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("baseaddress", "0x10000000000000000"))
4933
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("baseaddress", "-1"))
4935
Verify(parsedArgs.Errors, Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("baseaddress", ULong.MaxValue.ToString))
9556
parsedArgs.Errors.Verify(Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("langversion", "1000").WithLocation(1, 1))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\CompilationEmitTests.vb (2)
75
Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("RootNamespace", """Test""").WithLocation(1, 1),
82
Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("RootNamespace", """решения""").WithLocation(1, 1),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\ScriptSemanticsTests.vb (1)
126
Diagnostic(ERRID.
ERR_InvalidSwitchValue
).WithArguments("ScriptClassName", "a" + ChrW(0) + "b").WithLocation(1, 1)