diff --git a/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java b/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java index ddc6246..8384be3 100644 --- a/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java +++ b/src/org/ntlab/pushPullRefactoring/PushPullProcessor.java @@ -205,10 +205,17 @@ var getterStatements = generateGetStatement(srcValue, srcValue, srcType); var transition = new Expression[1]; md.accept(new ASTVisitor() { +// @Override +// public boolean visit(InfixExpression node) { +// var left = node.getLeftOperand(); +// +// transition[0] = node; +// return true; +// } @Override - public boolean visit(InfixExpression node) { - var left = node.getLeftOperand(); - + public boolean visit(Assignment node) { + var left = node.getLeftHandSide(); + if(left.toString().equals("this.value")); transition[0] = node; return true; }