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
Change syntax of splices and quotes #5918
Merged
nicolasstucki
merged 26 commits into
scala:master
from
dotty-staging:change-splice-dollar
Feb 22, 2019
Merged
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ace1883
Use `$` for splices in syntax and parsing
odersky 05e5309
Update bootstrap library to new syntax
odersky 3257b9d
Update tests to new syntax
odersky 6faa0df
Use nme.UNARY_~ directly
odersky a067989
Fix some tests
nicolasstucki eee09d4
Fix more tests
nicolasstucki e2086da
Fix ${ 'x } -> x and '{ $x } -> x transformation
nicolasstucki 26ca221
Add regression tests
nicolasstucki d749bd9
Adapt more tests
nicolasstucki 5bc50de
Change id syntax
odersky c6cc337
Drop Block(...) around quoted and spliced expressions where possible
odersky 7a71580
Fix '{}
nicolasstucki 6bcd70c
Readapt tests
nicolasstucki 8b0ba22
Fix and adapt tests
nicolasstucki bc5e068
Rename $MaxSpecialized to MaxSpecialized
nicolasstucki cc279c8
Revert changes in tests/pos/t4579.scala
nicolasstucki 7d39a1e
Update printer
nicolasstucki e23bf3c
Avoid accidental conversion from ${ x } to x.unary_~ and back
nicolasstucki 94e3a03
Change use of `$` for splices in syntax and parsing
odersky bd17841
Update docs to new syntax
odersky b32a4a8
Fix quote parsing
odersky 3846e49
Fix test
odersky ad3f519
Revert stdLib213 change after rebase
nicolasstucki b560392
Adapt i5954 tests
nicolasstucki 2ad3310
Change `splice` member to `$splice`
nicolasstucki 4b0c234
Adapt `splice` to `$splice` in test
nicolasstucki File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Submodule sourcecode
updated
1 files
+27 −27 | sourcecode/shared/src/main/dotty/sourcecode/Macros.scala |
Submodule stdLib213
updated
2162 files
This file contains 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 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nitpick 🙈,
TypSplice
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is actually a
TypeSplice
which is a completely different concept 🙉. That one wraps a tree that is typed inside an untyped tree.