equal
deleted
inserted
replaced
525 let |
525 let |
526 val thy = Proof_Context.theory_of ctxt; |
526 val thy = Proof_Context.theory_of ctxt; |
527 fun print_type c = uncurry Markup.markup (Name_Space.markup_extern ctxt (type_space thy) c); |
527 fun print_type c = uncurry Markup.markup (Name_Space.markup_extern ctxt (type_space thy) c); |
528 fun print_const c = uncurry Markup.markup (Name_Space.markup_extern ctxt (const_space thy) c); |
528 fun print_const c = uncurry Markup.markup (Name_Space.markup_extern ctxt (const_space thy) c); |
529 in |
529 in |
530 s |> Lexicon.unmark |
530 s |> Lexicon.unmark_entity |
531 {case_class = K (), |
531 {case_class = K (), |
532 case_type = fn c => |
532 case_type = fn c => |
533 if declared_tyname thy c then () else error ("Not a global type: " ^ quote (print_type c)), |
533 if declared_tyname thy c then () else error ("Not a global type: " ^ quote (print_type c)), |
534 case_const = fn c => |
534 case_const = fn c => |
535 if declared_const thy c then () else error ("Not a global const: " ^ quote (print_const c)), |
535 if declared_const thy c then () else error ("Not a global const: " ^ quote (print_const c)), |