How to use the babel-traverse.Hub function in babel-traverse

To help you get started, we’ve selected a few babel-traverse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github silklabs / silk / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    _this.dynamicImportTypes = {};
    _this.dynamicImportIds = {};
    _this.dynamicImports = [];
    _this.declarations = {};
    _this.usedHelpers = {};

    _this.path = null;
    _this.ast = {};

    _this.code = "";
    _this.shebang = "";

    _this.hub = new _babelTraverse.Hub(_this);
    return _this;
  }
github mendersoftware / gui / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    _this.dynamicImportTypes = {};
    _this.dynamicImportIds = {};
    _this.dynamicImports = [];
    _this.declarations = {};
    _this.usedHelpers = {};

    _this.path = null;
    _this.ast = {};

    _this.code = "";
    _this.shebang = "";

    _this.hub = new _babelTraverse.Hub(_this);
    return _this;
  }
github bradtraversy / youtube_es2015_source / 01_babel / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    /*istanbul ignore next*/_this.dynamicImportTypes = {};
    /*istanbul ignore next*/_this.dynamicImportIds = {};
    /*istanbul ignore next*/_this.dynamicImports = [];
    /*istanbul ignore next*/_this.declarations = {};
    /*istanbul ignore next*/_this.usedHelpers = {};

    /*istanbul ignore next*/_this.path = null;
    /*istanbul ignore next*/_this.ast = {};

    /*istanbul ignore next*/_this.code = "";
    /*istanbul ignore next*/_this.shebang = "";

    /*istanbul ignore next*/_this.hub = new /*istanbul ignore next*/_babelTraverse.Hub(_this);
    /*istanbul ignore next*/return _this;
  }
github TeamFleet / WhoCallsTheFleet / dev-output / js-source / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    this.dynamicImportTypes = {};
    this.dynamicImportIds = {};
    this.dynamicImports = [];
    this.declarations = {};
    this.usedHelpers = {};

    this.path = null;
    this.ast = {};

    this.code = "";
    this.shebang = "";

    this.hub = new _babelTraverse.Hub(this);
  }
github babel / babel / packages / babel-core / src / transformation / file / index.js View on Github external
if (plugin.manipulateOptions) {
          plugin.manipulateOptions(this.opts, this.parserOpts, this);
        }
      }
    }

    this.metadata = {};
    this.declarations = {};

    this.path = null;
    this.ast = {};

    this.code = "";
    this.shebang = "";

    this.hub = new Hub(this);
  }
github charlieschwabacher / gestalt / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    /*istanbul ignore next*/_this.dynamicImportTypes = {};
    /*istanbul ignore next*/_this.dynamicImportIds = {};
    /*istanbul ignore next*/_this.dynamicImports = [];
    /*istanbul ignore next*/_this.declarations = {};
    /*istanbul ignore next*/_this.usedHelpers = {};

    /*istanbul ignore next*/_this.path = null;
    /*istanbul ignore next*/_this.ast = {};

    /*istanbul ignore next*/_this.code = "";
    /*istanbul ignore next*/_this.shebang = "";

    /*istanbul ignore next*/_this.hub = new /*istanbul ignore next*/_babelTraverse.Hub(_this);
    /*istanbul ignore next*/return _this;
  }
github fnando / babel-schmooze-sprockets / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    _this.dynamicImportTypes = {};
    _this.dynamicImportIds = {};
    _this.dynamicImports = [];
    _this.declarations = {};
    _this.usedHelpers = {};

    _this.path = null;
    _this.ast = {};

    _this.code = "";
    _this.shebang = "";

    _this.hub = new _babelTraverse.Hub(_this);
    return _this;
  }
github fengjundev / DoubanMovie-React-Native / node_modules / react-native / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    this.dynamicImportTypes = {};
    this.dynamicImportIds = {};
    this.dynamicImports = [];
    this.declarations = {};
    this.usedHelpers = {};

    this.path = null;
    this.ast = {};

    this.code = "";
    this.shebang = "";

    this.hub = new _babelTraverse.Hub(this);
  }
github devinhalladay / devinhalladay.com / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    _this.dynamicImportTypes = {};
    _this.dynamicImportIds = {};
    _this.dynamicImports = [];
    _this.declarations = {};
    _this.usedHelpers = {};

    _this.path = null;
    _this.ast = {};

    _this.code = "";
    _this.shebang = "";

    _this.hub = new _babelTraverse.Hub(_this);
    return _this;
  }
github elyukai / optolith-client / node_modules / babel-core / lib / transformation / file / index.js View on Github external
}
    };

    _this.dynamicImportTypes = {};
    _this.dynamicImportIds = {};
    _this.dynamicImports = [];
    _this.declarations = {};
    _this.usedHelpers = {};

    _this.path = null;
    _this.ast = {};

    _this.code = "";
    _this.shebang = "";

    _this.hub = new _babelTraverse.Hub(_this);
    return _this;
  }