src/Pure/facts.ML
changeset 28941 128459bd72d2
parent 28864 d6fe93e3dcb9
child 28965 1de908189869
equal deleted inserted replaced
28940:df0cb410be35 28941:128459bd72d2
   190 
   190 
   191 (* add static entries *)
   191 (* add static entries *)
   192 
   192 
   193 fun add permissive do_props naming (b, ths) (Facts {facts, props}) =
   193 fun add permissive do_props naming (b, ths) (Facts {facts, props}) =
   194   let
   194   let
   195     val (name, facts') = if Name.is_nothing b then ("", facts)
   195     val (name, facts') = if Binding.is_nothing b then ("", facts)
   196       else let
   196       else let
   197         val (space, tab) = facts;
   197         val (space, tab) = facts;
   198         val (name, space') = NameSpace.declare_binding naming b space;
   198         val (name, space') = NameSpace.declare_binding naming b space;
   199         val entry = (name, (Static ths, serial ()));
   199         val entry = (name, (Static ths, serial ()));
   200         val tab' = (if permissive then Symtab.update else Symtab.update_new) entry tab
   200         val tab' = (if permissive then Symtab.update else Symtab.update_new) entry tab