37 references to Parse
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpVerifierHelper.cs (1)
27
var commandLineArguments = CSharpCommandLineParser.Default.
Parse
(args, baseDirectory: Environment.CurrentDirectory, sdkDirectory: Environment.CurrentDirectory);
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
39
return
Parse
(args, baseDirectory, sdkDirectory, additionalReferenceDirectories);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpCommandLineParserService.cs (1)
31
return parser.
Parse
(arguments, baseDirectory, sdkDirectory);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
CommandLineTestBase.cs (1)
52
return CSharpCommandLineParser.Default.
Parse
(args, baseDirectory, sdkDirectory, additionalReferenceDirectories);
CommandLineTests.cs (27)
122
return CSharpCommandLineParser.Script.
Parse
(args, baseDirectory, SdkDirectory);
129
return CSharpCommandLineParser.Default.
Parse
(args, baseDirectory, sdkDirectory, additionalReferenceDirectories);
505
var args = parser.
Parse
(new[] { "first.cs", "second.cs", "@a.rsp", "last.cs" }, basePath, SdkDirectory);
522
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "c:/test.cs" }, baseDirectory: null, SdkDirectory);
534
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "/additionalfile:web.config", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
548
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "/additionalfile:*", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
564
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "file.cs", $"-out:{parentDir.Path}", "/noSdkPath" }, parentDir.Path, null);
602
var args = parser.
Parse
(new[] { @"*.cs", @"/recurse:a\*.cs" }, @"C:\temp", SdkDirectory);
1478
var parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "a + b" }, WorkingDirectory, sdkDirectory);
1483
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "a + b; c" }, WorkingDirectory, sdkDirectory);
1488
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/help" }, WorkingDirectory, sdkDirectory);
1493
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version" }, WorkingDirectory, sdkDirectory);
1498
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/langversion:?" }, WorkingDirectory, sdkDirectory);
1503
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "//langversion:?" }, WorkingDirectory, sdkDirectory);
1509
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version", "c.csx" }, WorkingDirectory, sdkDirectory);
1514
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version:something" }, WorkingDirectory, sdkDirectory);
1519
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/?" }, WorkingDirectory, sdkDirectory);
1524
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c.csx /langversion:6" }, WorkingDirectory, sdkDirectory);
1529
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/langversion:-1", "c.csx", }, WorkingDirectory, sdkDirectory);
1537
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c.csx /r:s=d /r:d.dll" }, WorkingDirectory, sdkDirectory);
1542
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "@roslyn_test_non_existing_file" }, WorkingDirectory, sdkDirectory);
1550
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c /define:DEBUG" }, WorkingDirectory, sdkDirectory);
1555
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "\\" }, WorkingDirectory, sdkDirectory);
1560
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/r:d.dll", "c.csx" }, WorkingDirectory, sdkDirectory);
1565
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/define:goo", "c.csx" }, WorkingDirectory, sdkDirectory);
1572
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "\"/r d.dll\"" }, WorkingDirectory, sdkDirectory);
1577
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/r: d.dll", "a.cs" }, WorkingDirectory, sdkDirectory);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
2903
var parsedArgs = CSharpCommandLineParser.Default.
Parse
(new[] { pathmapArg, "a.cs" }, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null);
2914
var parsedArgs = CSharpCommandLineParser.Default.
Parse
(args, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpCommandLineParserService.cs (1)
31
return parser.
Parse
(arguments, baseDirectory, sdkDirectory);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\TempPECompilerService.cs (1)
107
return CSharpCommandLineParser.Default.
Parse
(arguments, baseDirectory, RuntimeEnvironment.GetRuntimeDirectory());
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\CSharpHelpers.cs (1)
139
return CSharpCommandLineParser.Default.
Parse
(arguments, baseDirectory, sdkDirectory);
System.Windows.Forms.Analyzers.CSharp.Tests (1)
Analyzers\Verifiers\CSharpVerifierHelper.cs (1)
24
var commandLineArguments = CSharpCommandLineParser.Default.
Parse
(args, baseDirectory: Environment.CurrentDirectory, sdkDirectory: Environment.CurrentDirectory);