-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix Tasty errors #1211
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
Fix Tasty errors #1211
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
422b061
Search implicit arguments in the same context as typing explicit ones
odersky 306d422
Take type parameters for this(...) constructor calls from prefix
odersky 03e8c54
Treat type parameters of secondary constructors as aliases
odersky e2cdfa3
Augment test case
odersky 90f9653
Make first phase of FromTasty not be a Typer
odersky 3e0be57
Add dotty.annotation.internal.SourceFile annotation
odersky b3b3f3c
Fix reading of SourceFile attribute from Tasty
odersky cb1f386
Pickle sourcefile attribute with canonical path
odersky 8ddfa83
Add unpickled source file path as annotation to root symbols
odersky cc7acea
Take SourceFile annotations into account when computing sourceFile
odersky 29e5792
Test cases
odersky 88eb98f
Fix flags when unpickling setters of parameter accessors
odersky 56b948c
Update TastyFormat for SeqLiteral
odersky 20175a0
Fix unpickling of Java SeqLiterals
odersky b37a2a8
Add source file for SourceFile annotation
odersky 5debb09
Explain isTyper field in Phase.
odersky f9d27c9
Store source files as normal paths, not canonical ones.
odersky 5aa59ac
Simplify handling of sourcefiles in Tasty info
odersky 0907f5b
Avoid creating a SourceFile annotation for SourceFile itself
odersky 6942127
Rearrange pickle tests
odersky 7ea24c6
Update TASTY tests for dotty/src
VladimirNik 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dotty.annotation.internal | ||
|
||
import scala.annotation.Annotation | ||
|
||
/** An annotation to record a Scala2 pickled alias. | ||
* @param aliased A TermRef pointing to the aliased field. | ||
*/ | ||
class SourceFile(path: String) extends Annotation { | ||
|
||
} |
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
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.
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.
Unfortunately, this is not enough.
A lot of code checks for
Phases.isAfterTyper
that is entirely independent from this methodThere 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.
True. But it does not matter for anyway. The change did not affect the fixes. I'll add a comment to explain better what isTyper is.