equal
deleted
inserted
replaced
42 (case Position.offset_of pos of |
42 (case Position.offset_of pos of |
43 NONE => pos |
43 NONE => pos |
44 | SOME 1 => pos |
44 | SOME 1 => pos |
45 | SOME j => |
45 | SOME j => |
46 Position.properties_of pos |
46 Position.properties_of pos |
47 |> Properties.put (Markup.offsetN, Markup.print_int (j - 1)) |
47 |> Properties.put (Markup.offsetN, Value.print_int (j - 1)) |
48 |> Position.of_properties) |
48 |> Position.of_properties) |
49 end; |
49 end; |
50 |
50 |
51 fun report_parse_tree redirect depth name_space parse_tree = |
51 fun report_parse_tree redirect depth name_space parse_tree = |
52 let |
52 let |
87 val pos = Exn_Properties.position_of_polyml_location loc; |
87 val pos = Exn_Properties.position_of_polyml_location loc; |
88 in |
88 in |
89 is_reported pos ? |
89 is_reported pos ? |
90 let |
90 let |
91 fun markup () = |
91 fun markup () = |
92 (Markup.entityN, [(if def then Markup.defN else Markup.refN, Markup.print_int id)]); |
92 (Markup.entityN, [(if def then Markup.defN else Markup.refN, Value.print_int id)]); |
93 in cons (pos, markup, fn () => "") end |
93 in cons (pos, markup, fn () => "") end |
94 end; |
94 end; |
95 |
95 |
96 fun reported_completions loc names = |
96 fun reported_completions loc names = |
97 let val pos = Exn_Properties.position_of_polyml_location loc in |
97 let val pos = Exn_Properties.position_of_polyml_location loc in |