Commit 935d356
Reason V4 [Stacked Diff 1/n #2605] [Allow multiple versions of Reason]
Summary:This allows multiple versions of Reason in a single project by
inferring and recording the version of syntax used into the file in an
attribute. The attribute allows us to switch the parser and lexer on the
fly. This attribute is not the only way we can infer the version, and we
can allow project level configuration, but this is the approach that is
guaranteed to work with any build system or tooling.
Test Plan:
Reviewers:
CC:1 parent aa543d7 commit 935d356
File tree
73 files changed
+2054
-678
lines changed- docs
- src
- reason-parser
- reason-version
- redoc
- refmt
- vendored-omp/tools
- test
- 4.12/reasonComments-re.t
- arityConversion.t
- assert.t
- basicStructures.t
- bigarray.t
- bucklescript.t
- class_types.t
- comments-ml.t
- comments-mli.t
- emptyFileComment.t
- escapesInStrings.t
- extensions.t
- externals.t
- firstClassModules.t
- fixme.t
- functionInfix.t
- general-syntax-re.t
- general-syntax-rei.t
- generics.t
- if.t
- infix.t
- jsx.t
- jsx_functor.t
- knownMlIssues.t
- lineComments.t
- mlVariants.t
- modules.t
- modules_no_semi.t
- object.t
- oo_3_dot_8.t
- pervasive.t
- pexpFun.t
- pipeFirst.t
- polymorphism.t
- sharpop.t
- singleLineCommentEof.t
- testUtils.t
- trailing.t
- trailingSpaces.t
- typeDeclarations.t
- typeParameters.t
- typeParameters_3_dot_8.t
- uncurried.t
- variants.t
- whitespace-re.t
- whitespace-rei.t
- wrapping-re.t
- wrapping-rei.t
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+2054
-678
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
25 | 38 | | |
26 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
27 | 45 | | |
28 | 46 | | |
29 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | | - | |
66 | | - | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
454 | 455 | | |
455 | 456 | | |
456 | 457 | | |
| |||
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | 561 | | |
| 562 | + | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
564 | 567 | | |
| 568 | + | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| 574 | + | |
570 | 575 | | |
571 | 576 | | |
572 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
573 | 588 | | |
574 | 589 | | |
575 | 590 | | |
| |||
0 commit comments