Esempio n. 1
0
        public InputTree Build(IEnumerable <Query> commands, string defaultCommandKey)
        {
            InputTree tree = new InputTree();

            ProcessQueries(tree.Root, commands, defaultCommandKey);
            return(tree);
        }
Esempio n. 2
0
 public InputTreeEvaluationStrategy(InputTree tree, IEnvironmentService environment)
 {
     this.tree        = tree ?? throw new ArgumentNullException(nameof(tree));
     this.environment = environment ?? throw new ArgumentNullException(nameof(environment));
 }