src/Pure/Isar/attrib.ML
changeset 57938 a9fa81e150c9
parent 57937 3bc4725b313e
child 57941 57200bdc2aa7
equal deleted inserted replaced
57937:3bc4725b313e 57938:a9fa81e150c9
   136   let val att0 = att o Args.transform_values (Local_Theory.background_morphism lthy) in
   136   let val att0 = att o Args.transform_values (Local_Theory.background_morphism lthy) in
   137     lthy
   137     lthy
   138     |> Local_Theory.background_theory_result (define_global binding att0 comment)
   138     |> Local_Theory.background_theory_result (define_global binding att0 comment)
   139     |-> (fn name =>
   139     |-> (fn name =>
   140       Local_Theory.map_contexts (K transfer_attributes)
   140       Local_Theory.map_contexts (K transfer_attributes)
   141       #> Local_Theory.declaration {syntax = false, pervasive = false} (fn phi => fn context =>
   141       #> Local_Theory.generic_alias Attributes.map binding name
   142           let
       
   143             val naming = Name_Space.naming_of context;
       
   144             val binding' = Morphism.binding phi binding;
       
   145           in Attributes.map (Name_Space.alias_table naming binding' name) context end)
       
   146       #> pair name)
   142       #> pair name)
   147   end;
   143   end;
   148 
   144 
   149 
   145 
   150 (* check *)
   146 (* check *)