Example #1
0
function State(origins, options) {
  this.origins = origins;
  this.cx = infer.cx();
  this.passes = options.passes || this.cx.parent && this.cx.parent.passes || {};
  this.output = [];
  this.options = options;
}
function getConcretePathTypeID(symbolPath) {
  var target = symbol_id.parse(symbolPath);
  target.abstract = false;

  var server = infer.cx().parent;
  if (server._node && server._node.options.coreModulesDir) {
    var isInNodeCoreModule = path.resolve(path.dirname(target.module)) == path.resolve(server._node.options.coreModulesDir);
    if (isInNodeCoreModule) target.nodejsCoreModule = path.basename(target.module, '.js');
  }

  if (target.namespace == 'commonjs') {
    nodejs_util.addPackageInfo(target);
  }

  return target;
}
function State(origins, options) {
  this.origins = origins;
  this.cx = infer.cx();
  this.output = [];
}