src/Pure/Isar/named_target.ML
changeset 56723 a8f71445c265
parent 56056 4d46d53566e6
child 57057 e54713f22a88
--- a/src/Pure/Isar/named_target.ML	Fri Apr 25 17:54:54 2014 +0200
+++ b/src/Pure/Isar/named_target.ML	Fri Apr 25 21:45:04 2014 +0200
@@ -134,6 +134,14 @@
     |> (fn lthy' => lthy' |> Generic_Target.standard_declaration (fn level => level <> 0) decl);
 
 
+(* subscription *)
+
+fun target_subscription (Target {target, ...}) =
+  if target = ""
+  then Generic_Target.theory_registration
+  else Generic_Target.locale_dependency target
+
+
 (* pretty *)
 
 fun pretty (Target {target, is_locale, is_class, ...}) ctxt =
@@ -183,6 +191,7 @@
         notes = Generic_Target.notes (target_notes ta),
         abbrev = Generic_Target.abbrev (target_abbrev ta),
         declaration = target_declaration ta,
+        subscription = target_subscription ta,
         pretty = pretty ta,
         exit = before_exit #> Local_Theory.target_of #> Sign.change_end_local}
   end;