Term.declare_typ_names, Term.declare_term_frees;
authorwenzelm
Wed, 31 Dec 2008 19:54:04 +0100
changeset 29279 7456a64bc4f6
parent 29278 e9d148a808eb
child 29280 c5531bf7c6b2
Term.declare_typ_names, Term.declare_term_frees;
src/Pure/variable.ML
--- a/src/Pure/variable.ML	Wed Dec 31 19:54:04 2008 +0100
+++ b/src/Pure/variable.ML	Wed Dec 31 19:54:04 2008 +0100
@@ -1,5 +1,4 @@
 (*  Title:      Pure/variable.ML
-    ID:         $Id$
     Author:     Makarius
 
 Fixed type/term variables and polymorphic term abbreviations.
@@ -179,12 +178,12 @@
 (* names *)
 
 fun declare_type_names t =
-  map_names (fold_types (fold_atyps (fn TFree (a, _) => Name.declare a | _ => I)) t) #>
+  map_names (fold_types (fold_atyps Term.declare_typ_names) t) #>
   map_maxidx (fold_types Term.maxidx_typ t);
 
 fun declare_names t =
   declare_type_names t #>
-  map_names (fold_aterms (fn Free (x, _) => Name.declare x | _ => I) t) #>
+  map_names (fold_aterms Term.declare_term_frees t) #>
   map_maxidx (Term.maxidx_term t);