20 references to Parser
dotnet-aot (20)
NativeEntryPoint.cs (4)
186parseResult = Parser.Parse(args); 308string? subCommandToken = parseResult.GetValue(Parser.RootCommand.DotnetSubCommand); 354exitCode = Parser.ExceptionHandler(exception, fileBasedRunParseResult); 398exitCode = Parser.ExceptionHandler(ex, parseResult);
parent\dotnet\CommandInvocation.cs (2)
34exitCode = Parser.Invoke(parseResult); 50exitCode = Parser.ExceptionHandler(exception, parseResult);
parent\dotnet\Commands\DotNetCommandFactory.cs (2)
40var command = Parser.GetBuiltInCommand(commandName); 43commandFunc = (args) => Parser.Invoke([commandName, .. args]);
parent\dotnet\Extensions\ParseResultExtensions.cs (12)
24parseResult.CommandResult.Command.Equals(Parser.RootCommand) && string.IsNullOrEmpty(parseResult.RootSubCommandResult()); 38parseResult.CommandResult.Command.Equals(Parser.RootCommand) 39&& !string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)); 52parseResult.GetResult(Parser.RootCommand.DotnetSubCommand) is { Tokens: [{ Type: TokenType.Argument, Value: { } } unmatchedCommandOrFile] } 78return Parser.Parse(["run", "--file", unmatchedCommandOrFile.Value, .. otherTokens]); 85_ => parseResult.GetResult(Parser.RootCommand.DotnetSubCommand)?.GetValueOrDefault<string>() 108Parser.Parse([.. filteredTokenValues, "-h"]).Invoke(); 126.SkipWhile(arg => Parser.RootCommand.DiagOption.Name.Equals(arg) 127|| Parser.RootCommand.DiagOption.Aliases.Contains(arg) 135Parser.GetBuiltInCommand(parseResult.RootSubCommandResult()) != null 137|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand))); 141|| Parser.GetBuiltInCommand(parseResult.RootSubCommandResult()) != null;