aboutsummaryrefslogtreecommitdiffhomepage
path: root/ide/ide_slave.ml
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-01-17 23:40:35 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-04-25 00:00:43 +0200
commit30d3515546cf244837c6340b6b87c5f51e68cbf4 (patch)
tree70dd074f483c34e9f71da20edf878062a4b5b3af /ide/ide_slave.ml
parent84eb5cd72a015c45337a5a6070c5651f56be6e74 (diff)
[location] Remove Loc.ghost.
Now it is a private field, locations are optional.
Diffstat (limited to 'ide/ide_slave.ml')
-rw-r--r--ide/ide_slave.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide/ide_slave.ml b/ide/ide_slave.ml
index bf86db08f..7f30a4acc 100644
--- a/ide/ide_slave.ml
+++ b/ide/ide_slave.ml
@@ -390,8 +390,8 @@ let quit = ref false
(** Serializes the output of Stm.get_ast *)
let print_ast id =
match Stm.get_ast id with
- | Some (expr, loc) -> begin
- try Texmacspp.tmpp expr loc
+ | Some (loc, expr) -> begin
+ try Texmacspp.tmpp ~loc expr
with e -> Xml_datatype.PCData ("ERROR " ^ Printexc.to_string e)
end
| None -> Xml_datatype.PCData "ERROR"