-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pretty print quotes #4213
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
Pretty print quotes #4213
Conversation
@@ -51,4 +51,16 @@ class DecompilerPrinter(_ctx: Context) extends RefinedPrinter(_ctx) { | |||
} | |||
} | |||
} | |||
|
|||
override protected def toTextCore[T >: Untyped](tree: Tree[T]): Text = { |
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 is not part of RefinedPrinter
?
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.
Maybe it should
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.
No, we do not want this representation when debugging.
cfb5ddd
to
88ca3c1
Compare
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.
Sorry, I forgot about this one
override protected def toTextCore[T >: Untyped](tree: Tree[T]): Text = { | ||
import untpd.{modsDeco => _, _} | ||
tree match { | ||
case TypeApply(fun, args) => |
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 think we should have a protected def
for each type of tree and override the bits we are interested in.,
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.
Added it
No description provided.