lib/ast.js
function(file) {
    if (!AST.cache) {
      return;
    }
    else if (typeof file === 'string') {
      if (!AST.cache[file]) AST.cache[file] = null;
    }
    else if (file.isParsed() && !file.timestamp) {
      file.timestamp = Date.now();
      AST.cache[file.file] = file;
    }
  }
function(file) {
    if (!AST.cache) {
      return;
    }
    else if (typeof file === 'string') {
      if (!AST.cache[file]) AST.cache[file] = null;
    }
    else if (file.isParsed() && !file.timestamp) {
      file.timestamp = Date.now();
      AST.cache[file.file] = file;
    }
  }
function ( file ) { if ( ! AST . cache ) { return ; } else if ( typeof file === 'string' ) { if ( ! AST . cache [ file ] ) AST . cache [ file ] = null ; } else if ( file . isParsed ( ) && ! file . timestamp ) { file . timestamp = Date . now ( ) ; AST . cache [ file . file ] = file ; } }
Writes a file into the cache of parsed files.
File paths may be submitted to expand the file graph,
even if we don't have a valid file yet to fill the node.
Writes a file into the cache of parsed files . File paths may be submitted to expand the file graph even if we don t have a valid file yet to fill the node .