@@ -278,14 +278,14 @@ defmodule Engine.Search.Indexer.Extractors.Module do
278
278
279
279
defp module ( _ , _ ) , do: :error
280
280
281
- @ protocol_module_attribue_names [ :protocol , :for ]
281
+ @ protocol_module_attribute_names [ :protocol , :for ]
282
282
283
283
@ starts_with_capital ~r/ [A-Z]+/
284
284
defp module_part? ( part ) when is_atom ( part ) do
285
285
Regex . match? ( @ starts_with_capital , Atom . to_string ( part ) )
286
286
end
287
287
288
- defp module_part? ( { :@ , _ , [ { type , _ , _ } | _ ] } ) when type in @ protocol_module_attribue_names ,
288
+ defp module_part? ( { :@ , _ , [ { type , _ , _ } | _ ] } ) when type in @ protocol_module_attribute_names ,
289
289
do: true
290
290
291
291
defp module_part? ( { :__MODULE__ , _ , context } ) when is_atom ( context ) , do: true
@@ -306,7 +306,7 @@ defmodule Engine.Search.Indexer.Extractors.Module do
306
306
307
307
# handles @protocol and @for in defimpl blocks
308
308
defp to_range ( % Reducer { } = reducer , [ { :@ , _ , [ { type , _ , _ } | _ ] } = attribute | segments ] , _ )
309
- when type in @ protocol_module_attribue_names do
309
+ when type in @ protocol_module_attribute_names do
310
310
range = Sourceror . get_range ( attribute )
311
311
312
312
document = reducer . analysis . document
0 commit comments