src/Pure/sign.ML
changeset 47006 5ee8004e2151
parent 47005 421760a1efe7
child 47008 8b13ebf3eda4
equal deleted inserted replaced
47005:421760a1efe7 47006:5ee8004e2151
   202 (* naming *)
   202 (* naming *)
   203 
   203 
   204 val naming_of = Name_Space.naming_of o Context.Theory;
   204 val naming_of = Name_Space.naming_of o Context.Theory;
   205 val map_naming = Context.theory_map o Name_Space.map_naming;
   205 val map_naming = Context.theory_map o Name_Space.map_naming;
   206 val restore_naming = map_naming o K o naming_of;
   206 val restore_naming = map_naming o K o naming_of;
   207 fun inherit_naming thy =
   207 fun inherit_naming thy = Name_Space.map_naming (K (naming_of thy)) o Context.Proof;
   208   Context.Proof o Context.proof_map (Name_Space.map_naming (K (naming_of thy)));
       
   209 
   208 
   210 val full_name = Name_Space.full_name o naming_of;
   209 val full_name = Name_Space.full_name o naming_of;
   211 fun full_name_path thy path = Name_Space.full_name (Name_Space.add_path path (naming_of thy));
   210 fun full_name_path thy path = Name_Space.full_name (Name_Space.add_path path (naming_of thy));
   212 
   211 
   213 fun full_bname thy = Name_Space.full_name (naming_of thy) o Binding.name;
   212 fun full_bname thy = Name_Space.full_name (naming_of thy) o Binding.name;