src/Pure/Isar/named_target.ML
changeset 57116 85e55ea7e06d
parent 57109 84c1e0453bda
child 57118 4760ac85b3f0
equal deleted inserted replaced
57115:ae61587eb44a 57116:85e55ea7e06d
    77 
    77 
    78 fun locale_abbrev locale prmode (b, mx) (global_rhs, _) params =
    78 fun locale_abbrev locale prmode (b, mx) (global_rhs, _) params =
    79   Generic_Target.background_abbrev (b, global_rhs) params
    79   Generic_Target.background_abbrev (b, global_rhs) params
    80   #-> (fn (lhs, _) => Generic_Target.locale_const locale prmode ((b, mx), lhs));
    80   #-> (fn (lhs, _) => Generic_Target.locale_const locale prmode ((b, mx), lhs));
    81 
    81 
    82 fun class_abbrev class prmode (b, mx) (global_rhs, rhs') params =
    82 fun class_abbrev class prmode (b, mx) (global_rhs, _) params =
    83   Generic_Target.background_abbrev (b, global_rhs) params
    83   Generic_Target.background_abbrev (b, global_rhs) params
    84   #-> (fn (lhs, _) => Class.abbrev class prmode ((b, mx), lhs) rhs');
    84   #-> (fn (lhs, rhs) => Class.abbrev class prmode ((b, mx), lhs) rhs);
    85 
    85 
    86 fun target_abbrev (ta as Target {target, is_locale, is_class, ...}) =
    86 fun target_abbrev (ta as Target {target, is_locale, is_class, ...}) =
    87   if is_class then class_abbrev target
    87   if is_class then class_abbrev target
    88   else if is_locale then locale_abbrev target
    88   else if is_locale then locale_abbrev target
    89   else Generic_Target.theory_abbrev;
    89   else Generic_Target.theory_abbrev;