18 references to Argument
dotnet (7)
Commands\Run\RunCommand.cs (2)
844
.Any(static t => t is { Type: TokenType.
Argument
, Value: "-" });
870
.Where(static t => t.Type == TokenType.
Argument
)
Extensions\ParseResultExtensions.cs (1)
33
token.Type == TokenType.
Argument
Program.cs (2)
336
if (parseResult.GetResult(Parser.RootCommand.DotnetSubCommand) is { Tokens: [{ Type: TokenType.
Argument
, Value: { } } unmatchedCommandOrFile] }
342
if (token.Type != TokenType.
Argument
|| token != unmatchedCommandOrFile)
Telemetry\AllowListToSendFirstArgument.cs (1)
29
.Where(t => t.Type.Equals(TokenType.
Argument
)).FirstOrDefault()?.Value ?? null;
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
26
var firstArgument = parseResult.Tokens.FirstOrDefault(t => t.Type.Equals(TokenType.
Argument
))?.Value ?? "";
System.CommandLine (11)
Completions\CompletionContext.cs (1)
83
lastToken?.Type == TokenType.
Argument
)
Parsing\ParseOperation.cs (4)
119
(currentTokenType == TokenType.
Argument
|| currentArgumentIndex > 0 || currentArgumentCount > 0))
131
else if (currentTokenType == TokenType.
Argument
)
153
(currentTokenType == TokenType.
Argument
||
260
while (More(out TokenType currentTokenType) && currentTokenType == TokenType.
Argument
)
Parsing\StringExtensions.cs (6)
181
Token Argument(string value) => new(value, TokenType.
Argument
, default, i);
183
Token CommandArgument(string value, Command command) => new(value, TokenType.
Argument
, command, i);
185
Token OptionArgument(string value, Option option) => new(value, TokenType.
Argument
, option, i);
215
tokenList.Add(new Token(alias.Slice(i + 1).ToString(), TokenType.
Argument
, default, argumentIndex));
225
tokenList.Add(new Token(alias.Slice(i).ToString(), TokenType.
Argument
, default, argumentIndex));
240
tokenList.Add(new Token(alias.Slice(index).ToString(), TokenType.
Argument
, default, argumentIndex));