public boolean visit(ObjectLiteral node) { this.fBuffer.append("{"); // $NON-NLS-1$ for (Iterator it = node.fields().iterator(); it.hasNext(); ) { ObjectLiteralField field = (ObjectLiteralField) it.next(); field.accept(this); } this.fBuffer.append("}"); // $NON-NLS-1$ return false; }
public boolean visit(ObjectLiteralField node) { node.getFieldName().accept(this); this.fBuffer.append(" : "); // $NON-NLS-1$ node.getInitializer().accept(this); return false; }