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)
123
return CSharpCommandLineParser.Script.
Parse
(args, baseDirectory, SdkDirectory);
130
return CSharpCommandLineParser.Default.
Parse
(args, baseDirectory, sdkDirectory, additionalReferenceDirectories);
506
var args = parser.
Parse
(new[] { "first.cs", "second.cs", "@a.rsp", "last.cs" }, basePath, SdkDirectory);
523
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "c:/test.cs" }, baseDirectory: null, SdkDirectory);
535
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "/additionalfile:web.config", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
549
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "/additionalfile:*", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
565
var parser = CSharpCommandLineParser.Default.
Parse
(new[] { "file.cs", $"-out:{parentDir.Path}", "/noSdkPath" }, parentDir.Path, null);
603
var args = parser.
Parse
(new[] { @"*.cs", @"/recurse:a\*.cs" }, @"C:\temp", SdkDirectory);
1479
var parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "a + b" }, WorkingDirectory, sdkDirectory);
1484
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "a + b; c" }, WorkingDirectory, sdkDirectory);
1489
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/help" }, WorkingDirectory, sdkDirectory);
1494
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version" }, WorkingDirectory, sdkDirectory);
1499
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/langversion:?" }, WorkingDirectory, sdkDirectory);
1504
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "//langversion:?" }, WorkingDirectory, sdkDirectory);
1510
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version", "c.csx" }, WorkingDirectory, sdkDirectory);
1515
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/version:something" }, WorkingDirectory, sdkDirectory);
1520
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/?" }, WorkingDirectory, sdkDirectory);
1525
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c.csx /langversion:6" }, WorkingDirectory, sdkDirectory);
1530
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/langversion:-1", "c.csx", }, WorkingDirectory, sdkDirectory);
1538
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c.csx /r:s=d /r:d.dll" }, WorkingDirectory, sdkDirectory);
1543
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "@roslyn_test_non_existing_file" }, WorkingDirectory, sdkDirectory);
1551
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "c /define:DEBUG" }, WorkingDirectory, sdkDirectory);
1556
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "\\" }, WorkingDirectory, sdkDirectory);
1561
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/r:d.dll", "c.csx" }, WorkingDirectory, sdkDirectory);
1566
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "/define:goo", "c.csx" }, WorkingDirectory, sdkDirectory);
1573
parsedArgs = CSharpCommandLineParser.Script.
Parse
(new[] { "\"/r d.dll\"" }, WorkingDirectory, sdkDirectory);
1578
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);