nl_tokens: Parses the file for import statements .
pl_tokens: function parseImports ( data , file , extensions ) { const imports = [ ] ; let result = importRegExp . exec ( data ) ; let encoding ; while ( result !== null ) { encoding = extensions [ path . extname ( result [ 2 ] ) ] ; // Filter irrelevant imports. if ( encoding !== undefined ) { imports . push ( <mask> FileImport ( result . index , importRegExp . lastIndex , result [ 1 ] , path . resolve ( path . dirname ( file ) , result [ 2 ] ) , encoding ) ) ; } result = importRegExp . exec ( data ) ; } return Promise . resolve ( [ imports , data ] ) ; }