public void Visit(LikeExpression op) { var leftArgs = VisitChild(op.Left); var rightArgs = VisitChild(op.Right); _codeStack.Peek().CodeExpression = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(typeof(Helper)), "Like", leftArgs.CodeExpression, rightArgs.CodeExpression); }
public void Visit(LikeExpression expression, CommonTree tree) { SetLine(expression, tree); Parent(tree).Children.Add(expression); VisitChildren(tree); }