Example #1
0
 public JPathEvaluatorTests(ITestOutputHelper output)
     : base(output)
 {
     RootEnv = new Evaluator.Env(
         parent: null,
         current: Evaluator.Result.Scalar(new Val()),
         resolver: Resolver,
         vars: global::BuildXL.Execution.Analyzer.LibraryFunctions.All.ToDictionary(
             func => "$" + func.Name, func => Evaluator.Result.Scalar(func)));
 }
Example #2
0
 private Evaluator.Env CreateEnv(object current, Evaluator.Env parent = null)
 {
     return(new Evaluator.Env(parent, Resolver(current), Resolver));
 }