lib/files.js
function createImportHook() {
  var imports = {};
  return function (fpath, kind, cb) {
    if (imports[fpath]) {
      // Already imported, return nothing to avoid duplicating attributes.
      process.nextTick(cb);
      return;
    }
    imports[fpath] = true;
    fs.readFile(fpath, {encoding: 'utf8'}, cb);
  };
}
function createImportHook() {
  var imports = {};
  return function (fpath, kind, cb) {
    if (imports[fpath]) {
      // Already imported, return nothing to avoid duplicating attributes.
      process.nextTick(cb);
      return;
    }
    imports[fpath] = true;
    fs.readFile(fpath, {encoding: 'utf8'}, cb);
  };
}
function createImportHook ( ) { var imports = { } ; return function ( fpath , kind , cb ) { if ( imports [ fpath ] ) { // Already imported, return nothing to avoid duplicating attributes. process . nextTick ( cb ) ; return ; } imports [ fpath ] = true ; fs . readFile ( fpath , { encoding : 'utf8' } , cb ) ; } ; }
Default file loading function for assembling IDLs.
Default file loading function for assembling IDLs .