-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Can we store the original call before inline
?
#5503
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
Labels
Comments
We decided we can keep outermost inline calls. That would avoid the combinatorial explosion. |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Nov 27, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 18, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 18, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 18, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 18, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 24, 2019
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 24, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the IDE works with trees coming from TASTy, it cannot see the trees before inlining. That means that
find all references
andrename
can return wrong results. All of that happens because we cannot see the original call in the trees that have been unpickled.Example:
The references inside
object Bar
will not be seen by the IDE. Note thatobject Bar
is not opened , but its trees will be unpickled. If we use thecode
interpolator instead oftasty
, then the test passes.This used to be fine after @nicolasstucki moved inlining out of typer in #5216, but this was reverted by @odersky in #5382 and #5383.
My understanding is that the original call is removed because its size may explode. Would it be possible to improve on that by only storing pre-expansion trees in the original call?
Considering the following source:
What I'm suggesting is that the RHS of
val buzz
could beinstead of
which would be more helpful than the current
Would it be possible to create this original call and store it? Would that solve the bytecode size issues?
None of this is a concern for incremental compilation, because the original call is removed after
ExtractDependencies
.The text was updated successfully, but these errors were encountered: