summaryrefslogtreecommitdiff
path: root/ocamldoc/odoc_analyse.ml
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2002-11-01 17:06:47 +0000
committerDamien Doligez <damien.doligez-inria.fr>2002-11-01 17:06:47 +0000
commited3123ee870f0362a576a88e0c7cf266581ee1b4 (patch)
treecf48c20af4544b2be26740666dffbc1ed4b6e380 /ocamldoc/odoc_analyse.ml
parent24b167171c95abd67eb787ea2cd5aff655ba4574 (diff)
downloadocaml-ed3123ee870f0362a576a88e0c7cf266581ee1b4.tar.gz
changement des locations, premiere tranche
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5224 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_analyse.ml')
-rw-r--r--ocamldoc/odoc_analyse.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/ocamldoc/odoc_analyse.ml b/ocamldoc/odoc_analyse.ml
index 071e7c1923..d11781a6b9 100644
--- a/ocamldoc/odoc_analyse.ml
+++ b/ocamldoc/odoc_analyse.ml
@@ -93,7 +93,9 @@ let parse_file inputfile parse_fun ast_magic =
end else begin
seek_in ic 0;
Location.input_name := inputfile;
- parse_fun (Lexing.from_channel ic)
+ let lexbuf = Lexing.from_channel ic in
+ Location.init lexbuf inputfile;
+ parse_fun lexbuf
end
with x -> close_in ic; raise x
in
@@ -154,10 +156,8 @@ module Sig_analyser = Odoc_sig.Analyser (Odoc_comments.Basic_info_retriever)
differences only concern code generation (i believe).*)
let process_error exn =
let report ppf = function
- | Lexer.Error(err, start, stop) ->
- Location.print ppf {Location.loc_start = start;
- Location.loc_end = stop;
- Location.loc_ghost = false};
+ | Lexer.Error(err, loc) ->
+ Location.print ppf loc;
Lexer.report_error ppf err
| Syntaxerr.Error err ->
Syntaxerr.report_error ppf err