// If the top level is an ExpressionStmt, with one child, then promote its
// single child to the top level to allow the contained expression to match
// anywhere.
if (topLevelNode instanceof ExpressionStmt) {
topLevelNode = topLevelNode.children().get(0);
}
// If the top level is a FunctionDeclaration, promote its single child to
// the top level to allow the contained FunctionConstructor to match in any
// context.