anchor.diff:      _ -> true
     end.
   
  -docs_chunk(Set, Line, Def, Defmacro, Types, Callbacks) ->
  +docs_chunk(Set, Module, Line, Def, Defmacro, Types, Callbacks) ->
     case elixir_compiler:get_opt(docs) of
       true ->
         {ModuleDocLine, ModuleDoc} = get_moduledoc(Line, Set),
  -      FunctionDocs = get_docs(Set, Def, function),
  -      MacroDocs = get_docs(Set, Defmacro, macro),
  +      FunctionDocs = get_docs(Set, Module, Def, function),
  +      MacroDocs = get_docs(Set, Module, Defmacro, macro),
         CallbackDocs = get_callback_docs(Set, Callbacks),
         TypeDocs = get_type_docs(Set, Types),
   
  
positive.code:     {DocLine, Doc} -> {DocLine, doc_value(Doc)}
    end.
  
  get_docs(Set, Definitions, Kind) ->
    [{Key,
      erl_anno:new(Line),
      [signature_to_binary(Name, Signature)],
      doc_value(Doc),
      doc_metadata(Kind)
     } || {Name, Arity} <- Definitions,
  
negative.code:   {Prefix, Forms, Def, Defmacro, Macros, Deprecated} = dynamic_form(Map),
    {Types, Callbacks, TypeSpecs} = typespecs_form(Map, Set, Bag, Macros),
  
    DocsChunk = docs_chunk(Set, Module, Line, Def, Defmacro, Types, Callbacks),
    DeprecatedChunk = deprecated_chunk(Deprecated),
    Chunks = lists:flatten([DocsChunk, DeprecatedChunk]),
  
  