index.js
function context(str) {
  var arr = code(str);
  var len = arr.length, i = 0;
  var res = {};

  while (len--) {
    var ele = arr[i++];
    if (ele.type !== 'comment') {
      res[ele.name] = ele.begin;
    }
  }
  return res;
}
function context(str) {
  var arr = code(str);
  var len = arr.length, i = 0;
  var res = {};

  while (len--) {
    var ele = arr[i++];
    if (ele.type !== 'comment') {
      res[ele.name] = ele.begin;
    }
  }
  return res;
}
function context ( str ) { var arr = code ( str ) ; var len = arr . length , i = 0 ; var res = { } ; while ( len -- ) { var ele = arr [ i ++ ] ; if ( ele . type !== 'comment' ) { res [ ele . name ] = ele . begin ; } } return res ; }
Get the code context for a JavaScript file.
Get the code context for a JavaScript file .