diff options
| author | Emilio Jesus Gallego Arias | 2019-03-29 19:42:41 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-03-29 19:42:41 +0100 |
| commit | ae9cc11c9975cc7ced1800f6684e160bc17fb092 (patch) | |
| tree | 68ce39acc517369d5e25fac9aa2d87f33fd3a4ed /lib/loc.ml | |
| parent | 23d6e0619fc7a1d466bebb831a988431828da88f (diff) | |
| parent | 7eba2dfda86238cb0941edfd7aafb09f566c36d8 (diff) | |
Merge PR #9830: [parser] initialization based on Loc.t rather than Loc.source
Reviewed-by: ejgallego
Ack-by: gares
Diffstat (limited to 'lib/loc.ml')
| -rw-r--r-- | lib/loc.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/loc.ml b/lib/loc.ml index 66b7a7da70..6bcdcc0341 100644 --- a/lib/loc.ml +++ b/lib/loc.ml @@ -29,6 +29,8 @@ let create fname line_nb bol_pos bp ep = { line_nb_last = line_nb; bol_pos_last = bol_pos; bp = bp; ep = ep; } +let initial source = create source 1 0 0 0 + let make_loc (bp, ep) = { fname = ToplevelInput; line_nb = -1; bol_pos = 0; line_nb_last = -1; bol_pos_last = 0; bp = bp; ep = ep; |
