}
return Collections.unmodifiableList(results);
}
public void addImplementedInterface(String interfaceName) {
LinkedListTree iface = AS3FragmentParser.parseIdent(interfaceName);
LinkedListTree impls = ASTUtils.findChildByType(ast, AS3Parser.IMPLEMENTS);
if (impls == null) {
ASTIterator i = new ASTIterator(ast);
i.find(AS3Parser.TYPE_BLOCK);
impls = ASTUtils.newAST(AS3Parser.IMPLEMENTS, "implements");
i.insertBeforeCurrent(impls);
LinkedListToken sp = TokenBuilder.newSpace();
impls.getStartToken().beforeInsert(sp);
} else {
impls.appendToken(TokenBuilder.newComma());
}
impls.appendToken(TokenBuilder.newSpace());
impls.addChildWithTokens(iface);
}