index.js
function assignDeclarationToGlobal(state, nodes, declaration) {
    var filenameNoExt = getFilenameNoExt(state.file.opts.filename);
    var expr = getGlobalExpression(state, filenameNoExt, declaration.id.name);
    assignToGlobal(expr, nodes, declaration.id);
  }
function assignDeclarationToGlobal(state, nodes, declaration) {
    var filenameNoExt = getFilenameNoExt(state.file.opts.filename);
    var expr = getGlobalExpression(state, filenameNoExt, declaration.id.name);
    assignToGlobal(expr, nodes, declaration.id);
  }
function assignDeclarationToGlobal ( state , nodes , declaration ) { var filenameNoExt = getFilenameNoExt ( state . file . opts . filename ) ; var expr = getGlobalExpression ( state , filenameNoExt , declaration . id . name ) ; assignToGlobal ( expr , nodes , declaration . id ) ; }
Assigns the given declaration to the appropriate global variable.
@param {!Object} state
@param {!Array} nodes
@param {!Declaration} declaration
Assigns the given declaration to the appropriate global variable .