2 types derived from CommandLineParser
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
46 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);
1162CommandLineParser.SplitCommandLineIntoArguments(@"\\test", removeHashComments: false));
1168CommandLineParser.SplitCommandLineIntoArguments(@"\\""test", removeHashComments: false));
1172CommandLineParser.SplitCommandLineIntoArguments(@"\\\""test", removeHashComments: false));
1176CommandLineParser.SplitCommandLineIntoArguments(@"\\\test", removeHashComments: false));
1180CommandLineParser.SplitCommandLineIntoArguments(@"\\\\\test", removeHashComments: false));
1191CommandLineParser.SplitCommandLineIntoArguments(@"a b", removeHashComments: false));
1195CommandLineParser.SplitCommandLineIntoArguments(@"""a b""", removeHashComments: false));
1199CommandLineParser.SplitCommandLineIntoArguments(@"""a "" b""", removeHashComments: false));
1205CommandLineParser.SplitCommandLineIntoArguments(@"""a \"" b""", removeHashComments: false));
1209CommandLineParser.SplitCommandLineIntoArguments(@"\a b", removeHashComments: false));
1214CommandLineParser.SplitCommandLineIntoArguments(@"\""a b\""", removeHashComments: false));
1219CommandLineParser.SplitCommandLineIntoArguments(@"\\""a b\\""", removeHashComments: false));
1223CommandLineParser.SplitCommandLineIntoArguments(@"""a""m""b""", removeHashComments: false));
1239Assert.Equal(@"\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\test.cs"));
1240Assert.Equal(@"\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"""\\test.cs"""));
1241Assert.Equal(@"\\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\test.cs"));
1242Assert.Equal(@"\\\\test.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\\test.cs"));
1243Assert.Equal(@"\\test\a\b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\test\a\b.cs"));
1244Assert.Equal(@"\\\\test\\a\\b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"\\\\test\\a\\b.cs"));
1245Assert.Equal(@"a""b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a\""b.cs"));
1246Assert.Equal(@"a"" mid ""b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a\"" mid \""b.cs"));
1247Assert.Equal(@"a mid b.cs", CommandLineParser.RemoveQuotesAndSlashes(@"a"" mid ""b.cs"));
1248Assert.Equal(@"a.cs", CommandLineParser.RemoveQuotesAndSlashes(@"""a.cs"""));
1249Assert.Equal(@"C:""My Folder\MyBinary.xml", CommandLineParser.RemoveQuotesAndSlashes(@"C:\""My Folder""\MyBinary.xml"));
1266var memory = CommandLineParser.RemoveQuotesAndSlashesEx(arg.AsMemory());
Microsoft.CodeAnalysis.Workspaces (2)
vbc (2)
VBCSCompiler (2)
VBCSCompiler.UnitTests (2)