extractFunctionBody() should now handle single line function declarations