public Node createSwitchStatement(Node condition, Node body) { return posify(new Switch().rawCondition(condition).rawBody(body)); }
public Node createSwitchStatement(Node condition, Node body) { return posify(new Switch().rawCondition(condition).rawBody(body)); }
public Node createSwitchStatement(Node condition, Node body) { return posify(new Switch().rawCondition(condition).rawBody(body)); }
@Override public boolean visitSwitch(lombok.ast.Switch node) { SwitchStatement value = new SwitchStatement(); value.sourceStart = start(node); value.sourceEnd = end(node); value.blockStart = start(node.rawBody()); value.expression = toExpression(node.astCondition()); value.statements = toArray(Statement.class, node.astBody().astContents()); if (value.statements == null) { if (isUndocumented(node.astBody())) value.bits |= ASTNode.UndocumentedEmptyBlock; } else { value.explicitDeclarations = calculateExplicitDeclarations(node.astBody().astContents()); } return set(node, value); }
@Override public boolean visitSwitch(lombok.ast.Switch node) { SwitchStatement value = new SwitchStatement(); value.sourceStart = start(node); value.sourceEnd = end(node); value.blockStart = start(node.rawBody()); value.expression = toExpression(node.astCondition()); value.statements = toArray(Statement.class, node.astBody().astContents()); if (value.statements == null) { if (isUndocumented(node.astBody())) value.bits |= ASTNode.UndocumentedEmptyBlock; } else { value.explicitDeclarations = calculateExplicitDeclarations(node.astBody().astContents()); } return set(node, value); }
@Override public boolean visitSwitch(lombok.ast.Switch node) { SwitchStatement value = new SwitchStatement(); value.sourceStart = start(node); value.sourceEnd = end(node); value.blockStart = start(node.rawBody()); value.expression = toExpression(node.astCondition()); value.statements = toArray(Statement.class, node.astBody().astContents()); if (value.statements == null) { if (isUndocumented(node.astBody())) value.bits |= ASTNode.UndocumentedEmptyBlock; } else { value.explicitDeclarations = calculateExplicitDeclarations(node.astBody().astContents()); } return set(node, value); }
formatter.space(); Node body = node.rawBody(); if (!(body instanceof Block)) { visit(body);
formatter.space(); Node body = node.rawBody(); if (!(body instanceof Block)) { visit(body);
formatter.space(); Node body = node.rawBody(); if (!(body instanceof Block)) { visit(body);