@@ -96,7 +96,8 @@ defmodule Macro.Env do
9696        ] 
9797
9898  @ type  expand_import_opts  ::  [ 
99-           allow_locals:  boolean ( )  |  ( Macro . metadata ( ) ,  atom ( ) ,  arity ( ) ,  [ atom ( ) ] ,  t ( )  ->  any ( ) ) , 
99+           allow_locals: 
100+ boolean ( )  |  ( Macro . metadata ( ) ,  atom ( ) ,  arity ( ) ,  t ( )  ->  function ( )  |  false ) , 
100101          check_deprecations:  boolean ( ) , 
101102          trace:  boolean ( ) 
102103        ] 
@@ -563,9 +564,7 @@ defmodule Macro.Env do
563564      - When `true`, uses a default resolver that looks for public macros in 
564565        the current module 
565566      - When a function, uses the function as a custom local resolver. The function 
566-         must have the signature: `(meta, name, arity, kinds, env) -> function() | false` 
567-         where `kinds` is a list of atoms indicating the types of symbols being 
568-         searched (e.g., `[:defmacro, :defmacrop]`) 
567+         must have the signature: `(meta, name, arity, env) -> function() | false` 
569568
570569    * `:check_deprecations` - when set to `false`, does not check for deprecations 
571570      when expanding macros 
@@ -592,7 +591,7 @@ defmodule Macro.Env do
592591        # When allow_locals is a callback, we don't need to pass module macros as extra 
593592        # because the callback will handle local macro resolution 
594593        extra  = 
595-           if  is_function ( allow_locals ,  5 )  do 
594+           if  is_function ( allow_locals ,  4 )  do 
596595            [ ] 
597596          else 
598597            case  allow_locals  and  function_exported? ( module ,  :__info__ ,  1 )  do 
0 commit comments