@@ -104,18 +104,18 @@ defmodule ExDoc.Retriever do
104104 { doc_line , moduledoc , metadata } = get_module_docs ( module_data , source_path )
105105
106106 # TODO: The default function groups must be returned by the language
107- groups_for_functions =
108- config . groups_for_functions ++
107+ groups_for_docs =
108+ config . groups_for_docs ++
109109 [ Callbacks: & ( & 1 [ :__doc__ ] == :callback ) , Functions: fn _ -> true end ]
110110
111111 annotations_for_docs = config . annotations_for_docs
112112
113- docs_groups = Enum . map ( groups_for_functions , & elem ( & 1 , 0 ) )
114- function_docs = get_docs ( module_data , source , groups_for_functions , annotations_for_docs )
113+ docs_groups = Enum . map ( groups_for_docs , & elem ( & 1 , 0 ) )
114+ function_docs = get_docs ( module_data , source , groups_for_docs , annotations_for_docs )
115115
116116 docs =
117117 function_docs ++
118- get_callbacks ( module_data , source , groups_for_functions , annotations_for_docs )
118+ get_callbacks ( module_data , source , groups_for_docs , annotations_for_docs )
119119
120120 types = get_types ( module_data , source )
121121
@@ -163,7 +163,7 @@ defmodule ExDoc.Retriever do
163163
164164 ## Function helpers
165165
166- defp get_docs ( module_data , source , groups_for_functions , annotations_for_docs ) do
166+ defp get_docs ( module_data , source , groups_for_docs , annotations_for_docs ) do
167167 { :docs_v1 , _ , _ , _ , _ , _ , doc_elements } = module_data . docs
168168
169169 nodes =
@@ -179,7 +179,7 @@ defmodule ExDoc.Retriever do
179179 function_data ,
180180 source ,
181181 module_data ,
182- groups_for_functions ,
182+ groups_for_docs ,
183183 annotations_for_docs
184184 )
185185 ]
@@ -194,7 +194,7 @@ defmodule ExDoc.Retriever do
194194 function_data ,
195195 source ,
196196 module_data ,
197- groups_for_functions ,
197+ groups_for_docs ,
198198 annotations_for_docs
199199 ) do
200200 { :docs_v1 , _ , _ , content_type , _ , _ , _ } = module_data . docs
@@ -212,7 +212,7 @@ defmodule ExDoc.Retriever do
212212 ( doc_content && doc_ast ( content_type , doc_content , file: source . path , line: doc_line + 1 ) ) ||
213213 function_data . doc_fallback . ( )
214214
215- group = GroupMatcher . match_function ( groups_for_functions , metadata )
215+ group = GroupMatcher . match_function ( groups_for_docs , metadata )
216216
217217 % ExDoc.FunctionNode {
218218 id: "#{ name } /#{ arity } " ,
@@ -255,19 +255,19 @@ defmodule ExDoc.Retriever do
255255 defp get_callbacks (
256256 % { type: :behaviour } = module_data ,
257257 source ,
258- groups_for_functions ,
258+ groups_for_docs ,
259259 annotations_for_docs
260260 ) do
261261 { :docs_v1 , _ , _ , _ , _ , _ , docs } = module_data . docs
262262
263263 for { { kind , _ , _ } , _ , _ , _ , _ } = doc <- docs , kind in module_data . callback_types do
264- get_callback ( doc , source , groups_for_functions , module_data , annotations_for_docs )
264+ get_callback ( doc , source , groups_for_docs , module_data , annotations_for_docs )
265265 end
266266 end
267267
268268 defp get_callbacks ( _ , _ , _ , _ ) , do: [ ]
269269
270- defp get_callback ( callback , source , groups_for_functions , module_data , annotations_for_docs ) do
270+ defp get_callback ( callback , source , groups_for_docs , module_data , annotations_for_docs ) do
271271 callback_data = module_data . language . callback_data ( callback , module_data )
272272
273273 { :docs_v1 , _ , _ , content_type , _ , _ , _ } = module_data . docs
@@ -284,7 +284,7 @@ defmodule ExDoc.Retriever do
284284 doc_ast = doc_ast ( content_type , doc , file: source . path , line: doc_line + 1 )
285285
286286 metadata = Map . put ( metadata , :__doc__ , :callback )
287- group = GroupMatcher . match_function ( groups_for_functions , metadata )
287+ group = GroupMatcher . match_function ( groups_for_docs , metadata )
288288
289289 % ExDoc.FunctionNode {
290290 id: "c:#{ name } /#{ arity } " ,
0 commit comments