equal
deleted
inserted
replaced
43 in cons (pos, markup, fn () => "") end |
43 in cons (pos, markup, fn () => "") end |
44 end; |
44 end; |
45 |
45 |
46 fun reported_completions loc names = |
46 fun reported_completions loc names = |
47 let val pos = Exn_Properties.position_of loc in |
47 let val pos = Exn_Properties.position_of loc in |
48 if is_reported pos then |
48 if is_reported pos andalso not (null names) then |
49 let |
49 let |
50 val completion = Completion.names pos (map (fn a => (a, ("ML", ""))) names); |
50 val completion = Completion.names pos (map (fn a => (a, ("ML", a))) names); |
51 val xml = Completion.encode completion; |
51 val xml = Completion.encode completion; |
52 in cons (pos, fn () => Markup.completion, fn () => YXML.string_of_body xml) end |
52 in cons (pos, fn () => Markup.completion, fn () => YXML.string_of_body xml) end |
53 else I |
53 else I |
54 end; |
54 end; |
55 |
55 |