public ParseTreeNode sanitize(ParseTreeNode input) {
MessageQueue mq = mgr.getMessageQueue();
ParseTreeNode result = null;
if (input instanceof UncajoledModule) {
Block body = ((UncajoledModule) input).getModuleBody();
if (body.children().size() == 2
&& body.children().get(0) instanceof DirectivePrologue
&& ((DirectivePrologue) body.children().get(0))
.hasDirective("use strict")
&& body.children().get(1) instanceof TranslatedCode) {
result = input;
}
}
result = newES53Rewriter(mgr).expand(input);
if (mq.hasMessageAtLevel(MessageLevel.ERROR)) {