(Closure c)
| 276 | } |
| 277 | |
| 278 | private void appendNodes(Closure c) { |
| 279 | List tail = getTail(); |
| 280 | for (Node child : buildChildrenFromClosure(c)) { |
| 281 | parent().appendNode(child.name(), child.attributes(), child.value()); |
| 282 | } |
| 283 | parent().children().addAll(tail); |
| 284 | } |
| 285 | |
| 286 | private static List<Node> buildChildrenFromClosure(Closure c) { |
| 287 | NodeBuilder b = new NodeBuilder(); |
no test coverage detected