parser = e4xParserOn(new StringReader(tail), stream);
} catch (IOException e) {
// TODO: better exception type?
throw new RuntimeException(e);
}
LinkedListTree ast = AS3FragmentParser.tree(parser.xmlPrimary());
tail = parser.getInputTail();
// skip over the XML in the original, underlying CharStream
cs.seek(cs.index() + (initialTailLength - tail.length()));
LinkedListTokenSource source = (LinkedListTokenSource)stream.getTokenSource();
stream.setTokenSource(source); // cause any remembered E4X state to be dropped