public static IQueryNode Run(IQueryNode node, AliasMap aliasMap, IQueryVisitorContextWithAliasResolver context = null)
 {
     return(RunAsync(node, aliasMap, context).GetAwaiter().GetResult());
 }
 public static Task <IQueryNode> RunAsync(IQueryNode node, AliasMap aliasMap, IQueryVisitorContextWithAliasResolver context = null)
 {
     return(new AliasedQueryVisitor().AcceptAsync(node, context ?? new QueryVisitorContextWithAliasResolver {
         RootAliasResolver = aliasMap.Resolve
     }));
 }