3 writes to Symbol
System.CommandLine (3)
Parsing\ParseOperation.cs (1)
164CurrentToken.Symbol = argument;
Parsing\Token.cs (2)
20Symbol = symbol; 28Symbol = symbol;
15 references to Symbol
System.CommandLine (15)
ArgumentValidation.cs (2)
165if (token.Symbol is null || token.Symbol == argument)
Parsing\ParseOperation.cs (4)
79Command command = (Command)CurrentToken.Symbol!; 162if (captureRemaining || CurrentToken.Symbol is null) 212Option option = (Option)CurrentToken.Symbol!; 332if (token.Symbol is not Directive directive)
Parsing\StringExtensions.cs (7)
89directive = (Directive)directiveToken.Symbol!; 140tokenList.Add(Option(arg, (Option)token.Symbol!)); 144Command cmd = (Command)token.Symbol!; 167tokenList.Add(Option(first, (Option)subtoken.Symbol!)); 232tokenList.Add(new Token(found.Value, found.Type, found.Symbol, argumentIndex)); 233if (i != alias.Length - 1 && ((Option)found.Symbol!).Greedy) 256if (token.Symbol is Option { Greedy: true } opt)
Parsing\Token.cs (2)
55public bool Equals(Token? other) => other is not null && Value == other.Value && Type == other.Type && ReferenceEquals(Symbol, other.Symbol);