           declareMethods ctx, classConstraint, freshedDeclarations
           ctx.declare name, isClass: yes
 
-          translateDict name, (keysOfMap freshedDeclarations), superClassNames
+          dictConstructorFunction name, (keysOfMap freshedDeclarations), superClassNames
         else
           jsNoop()
     else

  declaredId: (name) ->
    (@_declaration name)?.id

  # Only valid for ids from current context, that is without module set
  typeForId: (id) ->
    if id and not id.module
      @types[id.value]

  type: (name) ->
    (@_declaration name)?.type

exports.prettyPrint = prettyPrint
exports.plainPrettyPrint = plainPrettyPrint
exports.labelDocs = labelDocs
exports.builtInLibraryNumLines = library.split('\n').length + immutable.split('\n').length

# exports.compileModule = (source) ->
#   """
