Skip to content

-Yplain-printer: do not print positions by default #2083

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 1 commit into from
Mar 12, 2017

Conversation

smarter
Copy link
Member

@smarter smarter commented Mar 12, 2017

You can still have positions printed by explictly passing -Yprintpos

@smarter smarter requested a review from DarkDimius March 12, 2017 16:54
if (ctx.settings.Yprintpos.value)
text ~ node.pos.toString
else
text
case _ =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI, there's a more fluid way to do this:

nodeName ~ "(" ~ elems ~ tpSuffix ~ ")" ~ (node.pos.toString provided ctx.settings.Yprintpos.value)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated!

You can still have positions printed by explictly passing -Yprintpos
@smarter smarter force-pushed the fix/plainprinter-pos branch from 983ed63 to f483e39 Compare March 12, 2017 18:28
@smarter smarter merged commit e5e2f82 into scala:master Mar 12, 2017
@allanrenucci allanrenucci deleted the fix/plainprinter-pos branch December 14, 2017 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants