-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix printed references to module types #4715
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
Fix printed references to module types #4715
Conversation
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.
Otherwise, LGTM
prefix match { | ||
case Types.EmptyPrefix() => | ||
case _ => | ||
printTypeOrBound(prefix) += "." |
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.
I would change this line into two lines:
printTypeOrBound(prefix)
this += "."
@@ -750,9 +750,6 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty | |||
printTypeAndAnnots(tp) | |||
this += " " | |||
printAnnotation(annot) | |||
case tpe @ Type.TypeRef(name, _) if name.endsWith("$") => | |||
printType(tpe) | |||
this += ".type" |
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 the two cases below are not handled in TYPE printing as well ? Can we move the whole method printTypeAndAnnots
to TYPE printing part, instead of being a local method inside TREE printing?
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.
What is the relationship between ShowSourceCode and PlainPrinter and RefinedPrinter? Is there scope for unification?
There is no relationship between ShowSourceCode and PlainPrinter and RefinedPrinter. They are not intended to be unified. |
No description provided.