项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

13 lines
325 B

  1. "use strict";
  2. const visitorKeys = require("./visitor-keys");
  3. const analyzeScope = require("./analyze-scope");
  4. const parse = require("./parse");
  5. module.exports = function(code, options) {
  6. const ast = parse(code, options);
  7. const scopeManager = analyzeScope(ast, options);
  8. return { ast, scopeManager, visitorKeys };
  9. };