@Override public Void visitAssignment(AssignmentTree assignmentTree, Void unused) { // Don't count the LHS of the assignment to the variable as a usage. if (Objects.equals(getSymbol(assignmentTree.getVariable()), symbol)) { return scan(assignmentTree.getExpression(), null); } return super.visitAssignment(assignmentTree, null); }
@Override public Void visitAssignment(AssignmentTree node, Void aVoid) { if (symbol.equals(getSymbol(node.getVariable()))) { initializers.add(new TreePath(getCurrentPath(), node.getExpression())); } return super.visitAssignment(node, aVoid); } }.scan(state.getPath().getParentPath(), null);
@Override public Void visitAssignment(AssignmentTree node, InitializationContext init) { if (init == InitializationContext.INSTANCE && !isThisAccess(node.getVariable())) { // don't record assignments in initializers that aren't to members of the object // being initialized init = InitializationContext.NONE; } writes.recordAssignment(node.getVariable(), init); return super.visitAssignment(node, init); }
@Override public Void visitAssignment(AssignmentTree node, Trees trees) { add(node, trees); return super.visitAssignment(node, trees); }
@Override public Void visitAssignment(AssignmentTree node, Void ignore) { ExpressionTree variable = node.getVariable(); assignmentCheck(variable); return super.visitAssignment(node, ignore); }
@Override public Void visitAssignment(AssignmentTree node, Void aVoid) { if (symbol.equals(getSymbol(node.getVariable()))) { initializers.add(new TreePath(getCurrentPath(), node.getExpression())); } return super.visitAssignment(node, aVoid); } }.scan(state.getPath().getParentPath(), null);
@Override public Void visitAssignment(AssignmentTree assignmentTree, Void unused) { // Don't count the LHS of the assignment to the variable as a usage. if (Objects.equals(getSymbol(assignmentTree.getVariable()), symbol)) { return scan(assignmentTree.getExpression(), null); } return super.visitAssignment(assignmentTree, null); }
@Override public Void visitAssignment(AssignmentTree node, InitializationContext init) { if (init == InitializationContext.INSTANCE && !isThisAccess(node.getVariable())) { // don't record assignments in initializers that aren't to members of the object // being initialized init = InitializationContext.NONE; } writes.recordAssignment(node.getVariable(), init); return super.visitAssignment(node, init); }
@Override public Boolean visitAssignment(AssignmentTree tree, Element e) { return e == trees.getElement(new TreePath(getCurrentPath(), tree.getVariable())) ? Boolean.TRUE : super.visitAssignment(tree, e); }