src/Pure/General/completion.ML
changeset 80875 2e33897071b6
parent 71911 d25093536482
equal deleted inserted replaced
80874:9af593e9e454 80875:2e33897071b6
    59   in pair int (list (pair string (pair string string))) (total, names) end;
    59   in pair int (list (pair string (pair string string))) (total, names) end;
    60 
    60 
    61 fun markup_element completion =
    61 fun markup_element completion =
    62   let val {pos, names, ...} = dest completion in
    62   let val {pos, names, ...} = dest completion in
    63     if Position.is_reported pos andalso not (null names) then
    63     if Position.is_reported pos andalso not (null names) then
    64       SOME (Position.markup pos Markup.completion, encode completion)
    64       SOME (Position.markup_properties pos Markup.completion, encode completion)
    65     else NONE
    65     else NONE
    66   end;
    66   end;
    67 
    67 
    68 val markup_report =
    68 val markup_report =
    69   map_filter markup_element #> map XML.Elem #> YXML.string_of_body #> Markup.markup_report;
    69   map_filter markup_element #> map XML.Elem #> YXML.string_of_body #> Markup.markup_report;