nl_tokens: / * for modules in location : main not for user modules function : user
pl_tokens: function ( describeInfo ) { var arr = describeInfo ; // we're assuming the modules are in the reported order, // which should be dependency order. // essentially we're looking to add this to the correct module: //	f: 's', n: '1', v: 1, for ( var i = 0 ; i < arr . length ; i ++ ) { var item = arr [ i ] ; if ( item . l !== 'm' ) { //not stored in main continue ; } else if ( item . f === 'u' ) { //I'm a user module, bail break ; } // are we the first thing and we don't have a name? if ( ( i === 0 ) && ( ! item . n ) ) { item . n = i + '' ; } //skip the first one. if ( i === 0 ) { continue ; } // i is at least 1 var lastItem = arr [ i - 1 ] ; //var nextOne = ((i+1) < arr.length) ? arr[i+1] : null; if ( lastItem . n && ! item . n ) { //last one had a name, and I don't have a name. item . n = ( parseInt ( lastItem . n ) + 1 ) + '' ; if ( ! item . f ) { // was missing a function designation <mask> . f = 's' ; } if ( ! item . v ) { // was missing a version number item . v = 0 ; } } } return describeInfo ; }