           else
             escapedName = validIdentifier name
             if not node.label
-              defLocation = lookupIdentifier escapedName, node
+              defLocation = lookupIdentifier name, node
               if not defLocation
                 throw new Error "#{name} used but not defined"
             escapedName

      "function(__a, __b){return __b #{to} __a;}"

topScopeDefines = ->
  ids = 'true false and_ $empty show__list from__nullable'.split(' ')
    .concat unaryFnMapping.from,
      binaryOpMapping.from,
      binaryFnMapping.from,


compileWheresInModule = (ast) ->
  ast.scope = topScopeDefines()
  wheres = checkEvenness sortWheres whereList inside ast
  "#{wheres.map(compileExportedDef).join '\n'}"

compileExportedDef = ([name, def]) ->
