lib/ast.js
function(parentFile, importedFile) {
    if (parentFile.includedFiles.indexOf(importedFile.file) < 0) {
      // Add imported file reference:
      parentFile.includedFiles.push(importedFile.file);

      // Add all of imported file's imports:
      for (var i=0; i < importedFile.includedFiles.length; i++) {
        var includeFile = importedFile.includedFiles[i];
        if (parentFile.includedFiles.indexOf(includeFile) < 0) {
          parentFile.includedFiles.push(includeFile);
        }
      }
    }
  }
function(parentFile, importedFile) {
    if (parentFile.includedFiles.indexOf(importedFile.file) < 0) {
      // Add imported file reference:
      parentFile.includedFiles.push(importedFile.file);

      // Add all of imported file's imports:
      for (var i=0; i < importedFile.includedFiles.length; i++) {
        var includeFile = importedFile.includedFiles[i];
        if (parentFile.includedFiles.indexOf(includeFile) < 0) {
          parentFile.includedFiles.push(includeFile);
        }
      }
    }
  }
function ( parentFile , importedFile ) { if ( parentFile . includedFiles . indexOf ( importedFile . file ) < 0 ) { // Add imported file reference: parentFile . includedFiles . push ( importedFile . file ) ; // Add all of imported file's imports: for ( var i = 0 ; i < importedFile . includedFiles . length ; i ++ ) { var includeFile = importedFile . includedFiles [ i ] ; if ( parentFile . includedFiles . indexOf ( includeFile ) < 0 ) { parentFile . includedFiles . push ( includeFile ) ; } } } }
Maps included files from an import onto its parent.
Maps included files from an import onto its parent .