sb.append(JAVASCRIPT.toStringLiteral(includeAttr));
}
sb.append(")");
for (Map.Entry<AttributeValidator, Attribute> entry : bundle.getAttrs().entrySet()) {
AttributeValidator validator = entry.getKey();
Expression condition = entry.getValue().getCondition();
Expression value = entry.getValue().getValue();
sb.append(".attr(");
sb.append(JAVASCRIPT.toStringLiteral(validator.getName()));
sb.append(", ");
sb.append(validator.isFlagSet(AttributeValidator.Flag.BOOLEAN)
? value.acceptVisitor(this)
: toAnonymousClosure(value));
if (condition != null) {
sb.append(", ");
sb.append(condition.acceptVisitor(this));
}