 
 
 findDefinition = (name, context) ->
-  definition = findLocalDefinition name, context.definitions
+  definition = findLocalDefinition name, context._definitions
 
   return definition if definition
 
   parent = context.__super__?.constructor
-  if parent and parent.definitions
     definition = findDefinition name, parent
+  if parent and parent._definitions
 
   definition
 

  @compile: (data) ->
    object = {}

    for own name, property of @definitions
      val = null

      if property.type.isTinFoil


  constructor: ->
    @properties = {}
    @properties[name] = @buildProperty definition for own name, definition of @_definitions

  buildProperty: (definition) ->
    name: definition.name
