// If we meet all the requirements for an inlined method, parse and scan the
// body to make sure there isn't any constructs we can't inline.
final ScopedBlockNode functionBody = functionNode.getScopedNode();
if (functionBodyHasNonInlineableNodes(functionBody, reportInlineProblems, function.getBaseName(), new AtomicInteger()))
{
functionNode.discardFunctionBody();
return false;
}
return true;
}