-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unencode quote and splice trees #17342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
c2f6362
Rename `Spliced` to `SplicedExpr`
nicolasstucki 938d3ae
Split `Quoted` extractor into `QuotedExpr` and `QuotedTypeOf`
nicolasstucki b7ca9b1
Split `transformQuotation` into `transformQuotedExpr` and `transformQ…
nicolasstucki deb03a7
Add `QuotedExpr` to encode quotes directly in the AST
nicolasstucki b7a7227
Add `SplicedExpr` to encode splices directly in the AST
nicolasstucki fe64a3e
Remove splice outer quotes context
nicolasstucki 161ef49
Rename `SplicedExpr.{spliced=>expr}`
nicolasstucki cf30d30
Use QuotedExpr instead of Quote trees
nicolasstucki f0d758b
Use SplicedExpr instead of Splice trees
nicolasstucki c6adab8
Move typedQuotedExpr/typedSplicedExpr to QuotesAndSplices
nicolasstucki 3a045c4
Rename QuotedExpr to Quote and SplicedExpr to Splice
nicolasstucki 76d0daf
Add documentation
nicolasstucki 75bacdb
Backwards compatibility support for quotes and splice in reflection API
nicolasstucki 0e6dc2e
Add regression test
nicolasstucki cdd5ffb
Adapt REPL test output
nicolasstucki 04f020f
Remove `Splice.isInBraces`
nicolasstucki 35db4a1
Move Quote/Splice retyping into ReTyper
nicolasstucki 1ef7f59
Add documentation
nicolasstucki 687d06e
Transform Quote/Splice in MiniPhase
nicolasstucki 1f62049
Add TODOs and fix typos
nicolasstucki 5ae7861
Remove `tpt` from `Quote`
nicolasstucki 3976d06
Remove `tpt` from `Splice`
nicolasstucki d4b2f09
Rename `Quote.{expr=>body}`
nicolasstucki 35408ec
Fix staging level tracking in Transformer
nicolasstucki e73eab7
Cleanup unnecessary staging level updates
nicolasstucki e06b0f9
Use `Quote to encode `Type.of` in the `staging phase`
nicolasstucki 095a7f1
Remove state from TreeMapWithStages
nicolasstucki 10cbc60
Fix wrong staging level error message
nicolasstucki 3097f49
Simplify quoted type transformation in CrossStageSafety
nicolasstucki 8a9871f
Simplify Quote/Splice transformations in CrossStageSafety
nicolasstucki 966835b
Deduplicate code that transforms `Quote`, `Splice`, `Type.of`
nicolasstucki 95c39bc
Cleanup
nicolasstucki 0ca6066
Remove redundant case
nicolasstucki e3735fa
Refactor
nicolasstucki 6956c43
Refactor quote cancellation logic
nicolasstucki 859f6e6
Remove unnecessary quotation level change
nicolasstucki e4ddc88
Add missing change of staging level
nicolasstucki 7e8d2b1
Simplify macroDependencies using level from context
nicolasstucki a3c657b
Fix typo
nicolasstucki be3cd48
Refactor use of Quote
nicolasstucki 7bd7c92
Do not traverse type trees to find inline method calls
nicolasstucki b991b40
Remove post-condition that is already checked by Staging
nicolasstucki e611139
Refactor quote pickling case
nicolasstucki 37200be
Cleanup
nicolasstucki e75cafe
Remove unnecessary widening
nicolasstucki 9214daa
Apply suggestions from code review
nicolasstucki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.