@@ -3018,7 +3018,7 @@ defmodule Module.Types.Descr do
30183018
30193019  defp  unfold_domains ( domains  =  % { } ) ,  do:  domains 
30203020
3021-   def  map_get_static ( % { map:  [ { tag_or_domains ,  fields ,  [ ] } ] } ,  key_descr )  do 
3021+   defp  map_get_static ( % { map:  [ { tag_or_domains ,  fields ,  [ ] } ] } ,  key_descr )  do 
30223022    # For each non-empty kind of type in the key_descr, we add the corresponding key domain in a union. 
30233023    domains  =  unfold_domains ( tag_or_domains ) 
30243024
@@ -3031,7 +3031,7 @@ defmodule Module.Types.Descr do
30313031    end ) 
30323032  end 
30333033
3034-   def  map_get_static ( % { map:  dnf } ,  key_descr )  do 
3034+   defp  map_get_static ( % { map:  dnf } ,  key_descr )  do 
30353035    key_descr 
30363036    |>  covered_key_types ( ) 
30373037    |>  Enum . reduce ( none ( ) ,  fn 
@@ -3043,8 +3043,8 @@ defmodule Module.Types.Descr do
30433043    end ) 
30443044  end 
30453045
3046-   def  map_get_static ( % { } ,  _key ) ,  do:  not_set ( ) 
3047-   def  map_get_static ( :term ,  _key ) ,  do:  term_or_optional ( ) 
3046+   defp  map_get_static ( % { } ,  _key ) ,  do:  not_set ( ) 
3047+   defp  map_get_static ( :term ,  _key ) ,  do:  term_or_optional ( ) 
30483048
30493049  # Given a map dnf return the union of types for a given atom type. Handles two cases: 
30503050  # 1. A union of atoms (e.g., `{:union, atoms}`): 
@@ -3060,7 +3060,7 @@ defmodule Module.Types.Descr do
30603060  #   Fetching a key of type `atom() and not (:a)` from a map of type 
30613061  #   `%{a: atom(), b: float(), atom() => pid()}` 
30623062  #   would return either `nil` or `float()` (key `:b`) or `pid()` (key `atom()`), but not `atom()` (key `:a`). 
3063-   def  map_get_atom ( dnf ,  atom_type )  do 
3063+   defp  map_get_atom ( dnf ,  atom_type )  do 
30643064    case  atom_type  do 
30653065      { :union ,  atoms }  -> 
30663066        atoms 
@@ -3112,7 +3112,7 @@ defmodule Module.Types.Descr do
31123112  end 
31133113
31143114  # Take a map dnf and return the union of types for the given key domain. 
3115-   def  map_get_domain ( dnf ,  domain_key ( _ )  =  domain_key )  do 
3115+   defp  map_get_domain ( dnf ,  domain_key ( _ )  =  domain_key )  do 
31163116    dnf 
31173117    |>  Enum . reduce ( none ( ) ,  fn 
31183118      { tag ,  _fields ,  [ ] } ,  acc  when  is_atom ( tag )  -> 
0 commit comments