diff options
| author | Enrico Tassi | 2019-02-08 17:36:14 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-02-08 17:36:14 +0100 |
| commit | 3b9d338c751acd6694038b30e0c40637449df86a (patch) | |
| tree | 773041fe3146355363e2b7f54e50d07074ba73b0 /stm | |
| parent | e6694bfa536ddeff1a318adac73d05f5fb8ebec0 (diff) | |
| parent | d23434f0c05e185842667daf7ffbcb8410db41c0 (diff) | |
Merge PR #9481: [parsing] Use AST node for main parsing entry.
Reviewed-by: gares
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/stm.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stm/stm.ml b/stm/stm.ml index 0165b3c029..f6b4593087 100644 --- a/stm/stm.ml +++ b/stm/stm.ml @@ -3197,12 +3197,12 @@ let query ~doc ~at ~route s = let rec loop () = match parse_sentence ~doc at ~entry:Pvernac.main_entry s with | None -> () - | Some (loc, ast) -> - let indentation, strlen = compute_indentation ~loc at in + | Some {CAst.loc; v=ast} -> + let indentation, strlen = compute_indentation ?loc at in let st = State.get_cached at in let aast = { verbose = true; indentation; strlen; - loc = Some loc; expr = ast } in + loc; expr = ast } in ignore(stm_vernac_interp ~route at st aast); loop () in |
