translator.setRootElement(jsonml);
try {
root = translator.parse(compiler);
root.setInputId(inputId);
root.setStaticSourceFile(sourceFile);
new AstValidator().validateScript(root);
} catch (JsonMLException e) {
// compiler should already have JSErrors
}
}