nav tabs on admin dashboard
This commit is contained in:
20
node_modules/regenerator-transform/src/hoist.js
generated
vendored
20
node_modules/regenerator-transform/src/hoist.js
generated
vendored
@@ -1,14 +1,10 @@
|
||||
/**
|
||||
* Copyright (c) 2014, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
|
||||
* additional grant of patent rights can be found in the PATENTS file in
|
||||
* the same directory.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import * as t from "babel-types";
|
||||
import * as util from "./util";
|
||||
let hasOwn = Object.prototype.hasOwnProperty;
|
||||
|
||||
@@ -17,6 +13,7 @@ let hasOwn = Object.prototype.hasOwnProperty;
|
||||
// returns a VariableDeclaration containing just the names of the removed
|
||||
// declarations.
|
||||
exports.hoist = function(funPath) {
|
||||
const t = util.getTypes();
|
||||
t.assertFunction(funPath.node);
|
||||
|
||||
let vars = {};
|
||||
@@ -88,9 +85,9 @@ exports.hoist = function(funPath) {
|
||||
let assignment = t.expressionStatement(
|
||||
t.assignmentExpression(
|
||||
"=",
|
||||
node.id,
|
||||
t.clone(node.id),
|
||||
t.functionExpression(
|
||||
node.id,
|
||||
path.scope.generateUidIdentifierBasedOnNode(node),
|
||||
node.params,
|
||||
node.body,
|
||||
node.generator,
|
||||
@@ -121,6 +118,11 @@ exports.hoist = function(funPath) {
|
||||
FunctionExpression: function(path) {
|
||||
// Don't descend into nested function expressions.
|
||||
path.skip();
|
||||
},
|
||||
|
||||
ArrowFunctionExpression: function(path) {
|
||||
// Don't descend into nested function expressions.
|
||||
path.skip();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user