Commit 4c6b9db
Ppx improvements (#177)
* merlin document support for PPXs (#167)
* initial working with tests
* temp update
* temp
* major refactors, add support for .mli files
* refactoring and cleanup
* move all logic into override_document.ml; cleanup code; add logging
* add many more tests; handle edge cases
* revert std.ml changes
* improve comments
* update more comments
* suggested changes
* test nested ppx
* document payload test
* some more tests
* resolve final comments
* add test on floating attribute
* add test for attribute in an extension's payload
* Fix function syntax
* merlin overrides: merlin locate support for PPXs (#171)
* merlin document support for PPXs (#167)
* initial working with tests
* temp update
* temp
* major refactors, add support for .mli files
* refactoring and cleanup
* move all logic into override_document.ml; cleanup code; add logging
* add many more tests; handle edge cases
* revert std.ml changes
* improve comments
* update more comments
* suggested changes
* test nested ppx
* document payload test
* some more tests
* resolve final comments
* add test on floating attribute
* add test for attribute in an extension's payload
* Fix function syntax
* working parsing of new merlin.document structure
* fix document tests with new merlin.document structure
* replicate merlin.document tests for merlin.locate
* generalize comments, code for all overrides
* delete duplicate files from merge conflict
* add test overriding locate of a non-PPX
* add test on overriding default behavior of document
* format
* combine document and locate tests into single file
* adjust for new attribute structure
* update comment documenting expected attribute structure
* fix typo
* remove named parameter
* merlin locate outputs absolute paths using source_root
---------
Co-authored-by: Liam Stevenson <[email protected]>
* merlin overrides use interval tree instead of list (#173)
* interval tree interface
* interval tree implementation and basic test
* use array for construction, add more tests
* add and update comments
* fix error messages, validate inputs
* use list instead of array, add tests, add comments
* integrate into overrides.ml
* add test for empty tree
* resolve requested changes
* add test for zero-width interval
* undo test reformat
* update outdated comment
* update another oudated comment
* update comment
* Cache overrides interval trees using Phase_cache (#176)
* implementation but failing tests
* working overrides caching with tests
* add USE_PPX_CACHE, add all cache entries to tests
* update comments
* use Option.map
* move comment
* fix overrides caching mechanism, functorize caches, add cache invalidation test
* add comments, rename
* cleanup test output, and resolve other comments
* remove unnecessary sed commands from tests
* add commentsg
---------
Co-authored-by: Max Wang <[email protected]>1 parent fe6b12c commit 4c6b9db
File tree
15 files changed
+1906
-184
lines changed- src
- frontend
- kernel
- tests
- test-dirs
- server-tests
- test-units/kernel
15 files changed
+1906
-184
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
| 533 | + | |
537 | 534 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
552 | 560 | | |
553 | 561 | | |
554 | 562 | | |
| |||
567 | 575 | | |
568 | 576 | | |
569 | 577 | | |
570 | | - | |
571 | | - | |
572 | | - | |
| 578 | + | |
573 | 579 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
593 | 594 | | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
| 595 | + | |
| 596 | + | |
600 | 597 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
605 | 621 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
624 | 646 | | |
625 | 647 | | |
626 | 648 | | |
| |||
0 commit comments