code: 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);
    }
docs: Assigns the given declaration to the appropriate global variable.
  @param {!Object} state
  @param {!Array} nodes
  @param {!Declaration} declaration