void expectGetRangeForStmtNoAndReturn(int index, LocationRange range)
 {
     auto& sourceManager = parsedFunctionDecl->getASTContext().getSourceManager();
     EXPECT_CALL(*this, getStmtRange(Ref(sourceManager), Ref(*stmtNo(index))))
         .WillRepeatedly(Return(range));
 }
ast::Statements getFunctionStatements(clang::FunctionDecl& f, GetStatementRange getStmtRange)
{
    StatementTranslator translator(getStmtRange, f.getASTContext().getSourceManager());
    return translator.translateStmts(f.getBody()->children());
}