2 types derived from CommandLineParser
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
55 references to CommandLineParser
csc (2)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.UnitTests (27)
CommonCommandLineParserTests.cs (27)
22var actual = CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments).ToArray();
1114CommandLineParser.ParseSeparatedStrings(arg.AsMemory(), separators, removeEmptyEntries, builder);
1160CommandLineParser.SplitCommandLineIntoArguments(@"\\test", removeHashComments: false));
1166CommandLineParser.SplitCommandLineIntoArguments(@"\\""test", removeHashComments: false));
1170CommandLineParser.SplitCommandLineIntoArguments(@"\\\""test", removeHashComments: false));
1174CommandLineParser.SplitCommandLineIntoArguments(@"\\\test", removeHashComments: false));
1178CommandLineParser.SplitCommandLineIntoArguments(@"\\\\\test", removeHashComments: false));
1189CommandLineParser.SplitCommandLineIntoArguments(@"a b", removeHashComments: false));
1193CommandLineParser.SplitCommandLineIntoArguments(@"""a b""", removeHashComments: false));
1197CommandLineParser.SplitCommandLineIntoArguments(@"""a "" b""", removeHashComments: false));
1203CommandLineParser.SplitCommandLineIntoArguments(@"""a \"" b""", removeHashComments: false));
1207CommandLineParser.SplitCommandLineIntoArguments(@"\a b", removeHashComments: false));
1212CommandLineParser.SplitCommandLineIntoArguments(@"\""a b\""", removeHashComments: false));
1217CommandLineParser.SplitCommandLineIntoArguments(@"\\""a b\\""", removeHashComments: false));
1221CommandLineParser.SplitCommandLineIntoArguments(@"""a""m""b""", removeHashComments: false));
1237Assert.Equal(@"\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\test.cs"));
1238Assert.Equal(@"\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"""\\test.cs"""));
1239Assert.Equal(@"\\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\test.cs"));
1240Assert.Equal(@"\\\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\\test.cs"));
1241Assert.Equal(@"\\test\a\b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\test\a\b.cs"));
1242Assert.Equal(@"\\\\test\\a\\b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\\test\\a\\b.cs"));
1243Assert.Equal(@"a""b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a\""b.cs"));
1244Assert.Equal(@"a"" mid ""b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a\"" mid \""b.cs"));
1245Assert.Equal(@"a mid b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a"" mid ""b.cs"));
1246Assert.Equal(@"a.cs", CommandLineParser.RemoveQuotesAndSlashes(@"""a.cs"""));
1247Assert.Equal(@"C:""My Folder\MyBinary.xml", CommandLineParser.RemoveQuotesAndSlashes(@"C:\""My Folder""\MyBinary.xml"));
1264var memory = CommandLineParser.RemoveQuotesAndSlashesEx(arg.AsMemory());
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (8)
55Dim args = CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments:=True)
4558Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("errorlog", CommandLineParser.ErrorLogOptionFormat))
4564Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("errorlog", CommandLineParser.ErrorLogOptionFormat))
4623Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=42", "errorlog", CommandLineParser.ErrorLogOptionFormat))
4629Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=1.0.0", "errorlog", CommandLineParser.ErrorLogOptionFormat))
4635Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=2.1.0", "errorlog", CommandLineParser.ErrorLogOptionFormat))
4642Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,invalid=42", "errorlog", CommandLineParser.ErrorLogOptionFormat))
4649Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=2,version=2", "errorlog", CommandLineParser.ErrorLogOptionFormat))
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (2)
vbc (2)
VBCSCompiler (2)
VBCSCompiler.UnitTests (2)