src/Tools/Code/code_target.ML
changeset 55951 c07d184aebe9
parent 55776 7dd1971b39c1
child 56002 2028467b4df4
equal deleted inserted replaced
55950:3bb5c7179234 55951:c07d184aebe9
    95   let
    95   let
    96     val _ = if Sign.declared_tyname (Proof_Context.theory_of ctxt) tyco then ()
    96     val _ = if Sign.declared_tyname (Proof_Context.theory_of ctxt) tyco then ()
    97       else error ("No such type constructor: " ^ quote tyco);
    97       else error ("No such type constructor: " ^ quote tyco);
    98   in tyco end;
    98   in tyco end;
    99 
    99 
   100 fun read_tyco ctxt = #1 o dest_Type
   100 fun read_tyco ctxt =
   101   o Proof_Context.read_type_name_proper ctxt true;
   101   #1 o dest_Type o Proof_Context.read_type_name ctxt {proper = true, strict = true};
   102 
   102 
   103 fun cert_class ctxt class =
   103 fun cert_class ctxt class =
   104   let
   104   let
   105     val _ = Axclass.get_info (Proof_Context.theory_of ctxt) class;
   105     val _ = Axclass.get_info (Proof_Context.theory_of ctxt) class;
   106   in class end;
   106   in class end;