Skip to content
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

Make fresh name generation per file instead of global #7620

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented Nov 26, 2019

This makes the compiler output more stable and avoids overcompilation
during incremental compilation due to context bounds parameters changing
name. This is still not fine-grained enough as noted in the
documentation of CompilationUnit#freshNames.

To work properly, this requires us to always have a compilation unit set
in the context before compiling code, which is a good idea anyway (would
be nice to improve the API to make this harder to screw up).

@smarter smarter force-pushed the fresh-names-per-unit branch 2 times, most recently from 2f4c303 to 5a04232 Compare November 26, 2019 19:35
This makes the compiler output more stable and avoids overcompilation
during incremental compilation due to context bounds parameters changing
name. This is still not fine-grained enough as noted in the
documentation of CompilationUnit#freshNames.

To work properly, this requires us to always have a compilation unit set
in the context before compiling code, which is a good idea anyway (would
be nice to improve the API to make this harder to screw up).
@smarter smarter force-pushed the fresh-names-per-unit branch from 5a04232 to e07a728 Compare December 2, 2019 12:52
@smarter smarter merged commit 7185680 into scala:master Dec 2, 2019
@smarter smarter deleted the fresh-names-per-unit branch December 2, 2019 18:54
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