}
private static ParseTreeNode parse(
InputSource inputSource,
String sourceText) throws ParseException {
Parser parser = new Parser(
new JsTokenQueue(
new JsLexer(
CharProducer.Factory.fromString(sourceText, inputSource),
true),
inputSource),
DevNullMessageQueue.singleton(),
true);
Statement topLevelStatement = parser.parse();
parser.getTokenQueue().expectEmpty();
return topLevelStatement;
}