           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,

      .replace(/^default$/, 'default_')
      .replace(/^with$/, 'with_')
      .replace(/^in$/, 'in_')

lookupIdentifier = (name, node) ->
  while node.parent
