Skip to content

Remove Context from TastyPrinter class #10157

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

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Nov 3, 2020

This aligns the implementations of Ansii and HTML coloring using a single design pattern.

It will also allow showing the contents of a tasty file without the need to create an instance of a compiler. We could make scalac -print-tasty use the printer directly.

@nicolasstucki nicolasstucki force-pushed the remove-context-from-tasty-printer branch from b3b3b2e to df43d5b Compare November 3, 2020 14:47
@nicolasstucki nicolasstucki force-pushed the remove-context-from-tasty-printer branch from df43d5b to 13441ce Compare November 3, 2020 14:49
@nicolasstucki nicolasstucki changed the title Remove Context from TastyPrinter Remove Context from TastyPrinter class Nov 3, 2020
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki marked this pull request as ready for review November 3, 2020 15:59
@nicolasstucki nicolasstucki merged commit 141d804 into scala:master Nov 3, 2020
@nicolasstucki nicolasstucki deleted the remove-context-from-tasty-printer branch November 3, 2020 16:33
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