change return type of addChild()
diff --git a/core/plugins/org.eclipse.dltk.formatter/src/org/eclipse/dltk/formatter/AbstractFormatterNodeBuilder.java b/core/plugins/org.eclipse.dltk.formatter/src/org/eclipse/dltk/formatter/AbstractFormatterNodeBuilder.java
index ba39afe..f9e38b0 100644
--- a/core/plugins/org.eclipse.dltk.formatter/src/org/eclipse/dltk/formatter/AbstractFormatterNodeBuilder.java
+++ b/core/plugins/org.eclipse.dltk.formatter/src/org/eclipse/dltk/formatter/AbstractFormatterNodeBuilder.java
@@ -31,12 +31,13 @@
 		stack.push(node);
 	}
 
-	protected void addChild(IFormatterNode node) {
+	protected IFormatterNode addChild(IFormatterNode node) {
 		IFormatterContainerNode parentNode = peek();
 		if (!node.isEmpty()) {
 			advanceParent(parentNode, node.getStartOffset());
 		}
 		parentNode.addChild(node);
+		return node;
 	}
 
 	private void advanceParent(IFormatterContainerNode parentNode, final int pos) {