Skip to content

Commit

Permalink
表达式replace逻辑bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuanv127 committed Jul 11, 2017
1 parent d1ece72 commit 463f913
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
*/
public class ExpressionWithLaparenContext extends BaseExpressionParseContext
{
private ExpressionContext expression;
private BaseExpressionParseContext expression;

public ExpressionContext getExpression()
public BaseExpressionParseContext getExpression()
{
return expression;
}

public void setExpression(ExpressionContext expression)
public void setExpression(BaseExpressionParseContext expression)
{
this.expression = expression;
}
Expand Down Expand Up @@ -65,7 +65,11 @@ protected void walkChild(ParseContextWalker walker)
@Override
public void walkChildAndReplace(ParseContextReplacer replacer)
{

if(replacer.isChildsReplaceable(expression)) {
expression = replacer.createReplaceParseContext();
} else {
expression.walkChildAndReplace(replacer);
}
}

/**
Expand Down

0 comments on commit 463f913

Please sign in to comment.