public InputTree Build(IEnumerable <Query> commands, string defaultCommandKey) { InputTree tree = new InputTree(); ProcessQueries(tree.Root, commands, defaultCommandKey); return(tree); }
public InputTreeEvaluationStrategy(InputTree tree, IEnvironmentService environment) { this.tree = tree ?? throw new ArgumentNullException(nameof(tree)); this.environment = environment ?? throw new ArgumentNullException(nameof(environment)); }