src/Pure/Syntax/syntax_phases.ML
changeset 81596 af21a61dadad
parent 81589 fcf44ef51057
child 81598 82cccc88faa5
equal deleted inserted replaced
81595:ed264056f5dc 81596:af21a61dadad
    64   Markup.bound ::
    64   Markup.bound ::
    65     map (fn {pos, ...} => Position.make_entity_markup def id Markup.boundN (name, pos)) ps;
    65     map (fn {pos, ...} => Position.make_entity_markup def id Markup.boundN (name, pos)) ps;
    66 
    66 
    67 fun markup_entity ctxt c =
    67 fun markup_entity ctxt c =
    68   Syntax.get_consts (Proof_Context.syntax_of ctxt) c
    68   Syntax.get_consts (Proof_Context.syntax_of ctxt) c
    69   |> maps (Lexicon.unmark
    69   |> maps (Lexicon.unmark_entity
    70      {case_class = markup_class ctxt,
    70      {case_class = markup_class ctxt,
    71       case_type = markup_type ctxt,
    71       case_type = markup_type ctxt,
    72       case_const = markup_const ctxt,
    72       case_const = markup_const ctxt,
    73       case_fixed = markup_free ctxt,
    73       case_fixed = markup_free ctxt,
    74       case_default = K []});
    74       case_default = K []});
   720 
   720 
   721 fun extern ctxt c =
   721 fun extern ctxt c =
   722   (case Syntax.get_consts (Proof_Context.syntax_of ctxt) c of
   722   (case Syntax.get_consts (Proof_Context.syntax_of ctxt) c of
   723     [b] => b
   723     [b] => b
   724   | bs =>
   724   | bs =>
   725       (case filter Lexicon.is_marked bs of
   725       (case filter Lexicon.is_marked_entity bs of
   726         [] => c
   726         [] => c
   727       | [b] => b
   727       | [b] => b
   728       | _ => error ("Multiple logical entities for " ^ quote c ^ ": " ^ commas_quote bs)))
   728       | _ => error ("Multiple logical entities for " ^ quote c ^ ": " ^ commas_quote bs)))
   729   |> Proof_Context.extern_entity ctxt;
   729   |> Proof_Context.extern_entity ctxt;
   730 
   730