-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make main methods invisible #11546
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
Make main methods invisible #11546
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
09b7746
Make main methods invisible
odersky 789ceb1
Make bean properties invisible
odersky 4f2e6a4
Don't create constructor proxies for invisible classes
odersky b4dfb6b
Bump experimental instead of minor version
odersky a7a97b4
Address review comments
odersky 54495b6
Expose Invisible flag in Tasty reflect
odersky 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
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 |
---|---|---|
|
@@ -212,6 +212,7 @@ Standard-Section: "ASTs" TopLevelStat* | |
PARAMalias -- Parameter is alias of a superclass parameter | ||
EXPORTED -- An export forwarder | ||
OPEN -- an open class | ||
INVISIBLE -- invisible during typechecking | ||
Annotation | ||
|
||
Variance = STABLE -- invariant | ||
|
@@ -300,7 +301,7 @@ object TastyFormat { | |
* is able to read final TASTy documents if the file's | ||
* `MinorVersion` is strictly less than the current value. | ||
*/ | ||
final val ExperimentalVersion: Int = 1 | ||
final val ExperimentalVersion: Int = 2 | ||
|
||
/**This method implements a binary relation (`<:<`) between two TASTy versions. | ||
* We label the lhs `file` and rhs `compiler`. | ||
|
@@ -472,8 +473,9 @@ object TastyFormat { | |
final val PARAMalias = 41 | ||
final val TRANSPARENT = 42 | ||
final val INFIX = 43 | ||
final val EMPTYCLAUSE = 44 | ||
final val SPLITCLAUSE = 45 | ||
final val INVISIBLE = 44 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. normally this would require a |
||
final val EMPTYCLAUSE = 45 | ||
final val SPLITCLAUSE = 46 | ||
|
||
// Cat. 2: tag Nat | ||
|
||
|
@@ -636,6 +638,7 @@ object TastyFormat { | |
| PARAMalias | ||
| EXPORTED | ||
| OPEN | ||
| INVISIBLE | ||
| ANNOTATION | ||
| PRIVATEqualified | ||
| PROTECTEDqualified => true | ||
|
@@ -698,6 +701,7 @@ object TastyFormat { | |
case PARAMsetter => "PARAMsetter" | ||
case EXPORTED => "EXPORTED" | ||
case OPEN => "OPEN" | ||
case INVISIBLE => "INVISIBLE" | ||
case PARAMalias => "PARAMalias" | ||
case EMPTYCLAUSE => "EMPTYCLAUSE" | ||
case SPLITCLAUSE => "SPLITCLAUSE" | ||
|
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
package foo: | ||
@main def main(): Unit = println("Hello, World!") | ||
|
||
@main def List(): Unit = println("List") |
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.
This flag should be visible in tasty-reflect too /cc @nicolasstucki