Commit 01322f7
committed
feat(dune_lang): add
Mirrors the existing `has_standard`. Callers that need to summarise
an `Unexpanded.t` syntactically — without reading the file an
`(:include FN)` directive points to — must now check `has_include`
and widen their answer accordingly, since `fold_strings` skips
`Include` AST nodes entirely.
Used by the menhir auto-injection in opam-create (ocaml#14434, fixes
ocaml#14428): a `(modules (:include FN))` library would otherwise be
mis-summarised as compiling no modules.
Signed-off-by: Robin Bate Boerop <me@robinbb.com>Ordered_set_lang.Unexpanded.has_include
1 parent 5fa4ca0 commit 01322f7
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
359 | 370 | | |
360 | 371 | | |
361 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
0 commit comments