Skip to content

Keep loaded pickled tasty when compiling from tasty #3492

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 3 commits into from
Nov 20, 2017

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

}
private[this] var myTree: tpd.Tree /* tpd.PackageDef | tpd.TypeDef | tpd.EmptyTree */ = tpd.EmptyTree
private[this] var myTasty: Array[Byte] = _
Copy link
Member

Choose a reason for hiding this comment

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

If possible, I would rather not add a field to every ClassSymbol for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The alternative is to keep the unpickler longer. I will go back to that solution.

@OlivierBlanvillain
Copy link
Contributor

I guess the title should now be "Keep loaded pickled tasty when compiling from tasty", but the diff is LGTM! Did you try testing than re-pickling these trees leads to the same tasty?

@nicolasstucki nicolasstucki changed the title Add missing pickler in TASTYCompiler Keep loaded pickled tasty when compiling from tasty Nov 20, 2017
@nicolasstucki nicolasstucki merged commit 51bc54a into scala:master Nov 20, 2017
@allanrenucci allanrenucci deleted the add-missing-pickler branch December 14, 2017 16:57
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.

3 participants