-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Test compilation of decompiled code #4266
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
nicolasstucki
merged 9 commits into
scala:master
from
dotty-staging:compile-decompiled-code
May 9, 2018
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f77ac08
Test compilation of decompiled code
nicolasstucki 1160d2c
Do not print self types of module objects
nicolasstucki cd663ec
Enable runtime tests on recompiled code
nicolasstucki c1d1c21
Rename filter to isSyntheticParent
nicolasstucki 11fe1b9
Override printing of self in DecompilerPrinter
nicolasstucki 8bfc4ec
Fix step4 not able to see availavble tests
nicolasstucki bcfc2b7
Create TastyCompilationTest
nicolasstucki 6971c0d
Fix double space in module diefinition printing
nicolasstucki 3301cf4
Move more logic from RefinedPrinter to DecompilerPrinter
allanrenucci 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
================================================================================ | ||
out/posTestFromTasty/pos/methodTypes/Foo.class | ||
-------------------------------------------------------------------------------- | ||
/** Decompiled from out/posTestFromTasty/pos/methodTypes/Foo.class */ | ||
class Foo() { | ||
val x: Int = 1 | ||
def y: Int = 2 | ||
def z(): Int = 3 | ||
} | ||
-------------------------------------------------------------------------------- | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
================================================================================ | ||
out/posTestFromTasty/pos/simpleClass-2/foo/A.class | ||
-------------------------------------------------------------------------------- | ||
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/A.class */ | ||
package foo { | ||
class A() extends foo.B() {} | ||
} | ||
-------------------------------------------------------------------------------- | ||
================================================================================ | ||
out/posTestFromTasty/pos/simpleClass-2/foo/B.class | ||
-------------------------------------------------------------------------------- | ||
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/B.class */ | ||
package foo { | ||
class B() {} | ||
} | ||
-------------------------------------------------------------------------------- | ||
} |
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
================================================================================ | ||
out/posTestFromTasty/pos/simpleClass/foo/A.class | ||
-------------------------------------------------------------------------------- | ||
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/A.class */ | ||
package foo { | ||
class A() {} | ||
} | ||
-------------------------------------------------------------------------------- | ||
================================================================================ | ||
out/posTestFromTasty/pos/simpleClass/foo/B.class | ||
-------------------------------------------------------------------------------- | ||
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/B.class */ | ||
package foo { | ||
class B() extends foo.A() {} | ||
} | ||
-------------------------------------------------------------------------------- | ||
} |
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.
why?
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.
If we print colors in the output file it is impossible to read (and probably compile) the file.
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.
Shouldn't we do this even if
args
does not contain-d
?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.
If args does not contain
-d
the output is printed on the terminal. There it is fine and nicer to have colors. Also copy-pasting from the terminal usually removes the colors.