     #
     # @param [Object] type reference of type
     # @param [Object] ctx referencing context
-    # @return [Object] referencing context
     #
     registerTypeReference: (type, ctx) ->
-        ctx
+        @typeRefs.push(type, ctx)
+
+    #
+    # Registers definition reference
+    #
+    # @param [Object] definition type definition schema
+    #
+    registerDefinition: (definition) ->
+        @typeDefs[definition.__path] = definition
+
+    #
+    # Processes type references
+    #
+    # @todo Implement type references processing
+    #
+    processTypeReferences: () ->
 
     #
     # Processes property type.

#
# @class Postprocessor
#
class Postprocessor
    @supportedRules = ['definition', 'enumeration', 'index', 'attribute', 'relation', 'link']

    #
    # @param [Object] parser
    #
    constructor: (@parser) ->

    #
    # Executes jison parser and converts it's result to JSON Schema

    # @return [Object] JSON Schema definition of rule
    #
    processRule: (rule, ctx) ->
        if (rule.rule in @constructor.supportedRules)
            method = "process#{utils.capitalizeFirst(rule.rule)}"
            @[method](rule, ctx)
        else throw new Error("Unrecognized Grypher rule #{rule.rule}.")
