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
SI-8875 showCode should print all class constructor modifiers. #4045
Conversation
PLS REBUILD ALL |
(kitty-note-to-self: ignore 58636343) |
PLS REBUILD/pr-scala@037f295 |
(kitty-note-to-self: ignore 58663584) |
PLS REBUILD/pr-scala@037f295 |
(kitty-note-to-self: ignore 58740406) |
037f295
to
ee5a5d1
Compare
PLS REBUILD/pr-scala@ee5a5d1 |
(kitty-note-to-self: ignore 58883103) |
PLS REBUILD ALL |
@@ -761,7 +761,7 @@ trait Printers extends api.Printers { self: SymbolTable => | |||
val build.SyntacticClassDef(_, _, _, ctorMods, vparamss, earlyDefs, parents, selfType, body) = cl | |||
|
|||
// constructor's modifier | |||
if (ctorMods.hasFlag(AccessFlags)) { | |||
if (ctorMods.hasFlag(AccessFlags) || ctorMods.privateWithin != tpnme.EMPTY) { |
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.
ctorMods.hasAccessBoundary
is a higher level way of saying the same thing.
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.
Thanks, I missed that one. Fixed.
showCode used to print nothing when the only modifier was a change in visibility scope (i.e. no flags but privateWithin is set).
ee5a5d1
to
f8d1a9f
Compare
Triggering rebuild now that IDE validation should be fixed. Sorry about all the noise. |
(kitty-note-to-self: ignore 59266442) |
LGTM |
SI-8875 showCode should print all class constructor modifiers.
showCode used to print nothing when the only modifier was a change in
visibility scope (i.e. no flags but privateWithin is set).