Example #1
0
        public ExprNode Copy(ExprNode exprNode)
        {
            var expression = StatementSpecMapper.Unmap(exprNode);
            var mapEnv = services.StatementSpecMapEnv;
            var mapContext = new StatementSpecMapContext(contextCompileTimeDescriptor, mapEnv);
            var copy = StatementSpecMapper.MapExpression(expression, mapContext);

            statementSpecRaw.TableExpressions.AddAll(mapContext.TableExpressions);
            copy.Accept(visitor);

            return copy;
        }
Example #2
0
 public void Add(StatementSpecMapContext other)
 {
     TableExpressions.AddAll(other.TableExpressions);
     VariableNames.AddAll(other.VariableNames);
 }