Searched refs:consumed_tokens (Results 1 – 2 of 2) sorted by relevance
59 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) = 0;315 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) { in ParseArgument()317 assert(consumed_tokens != nullptr); in ParseArgument()330 *consumed_tokens = best_match_arg_def->Size(); in ParseArgument()
588 size_t consumed_tokens = 1; // At least 1 if we ever want to try to resume parsing on error in Parse() local589 CmdlineResult parse_attempt = arg->ParseArgument(exact_range, &consumed_tokens); in Parse()596 assert(consumed_tokens > 0); // Don't hang in an infinite loop trying to parse in Parse()597 i += consumed_tokens; in Parse()