Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Issue 1657463002: Element no longer implements AnalysisTarget

Created:
4 years, 10 months ago by skybrian
Modified:
4 years, 10 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@fixhash
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Element no longer implements AnalysisTarget It looks like all Elements that are used as an AnalysisTarget (and so can be used as a cache map key) are within the ConstantEvaluationTarget type hierarchy. BUG=

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M pkg/analyzer/lib/dart/element/element.dart View 3 chunks +1 line, -3 lines 1 comment Download
M pkg/analyzer/lib/src/context/cache.dart View 1 chunk +1 line, -1 line 1 comment Download
M pkg/analyzer/lib/src/generated/incremental_resolver.dart View 2 chunks +3 lines, -2 lines 1 comment Download
M pkg/analyzer/lib/src/task/dart.dart View 1 chunk +2 lines, -1 line 1 comment Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 4 (1 generated)
skybrian
All tests pass but I'm not certain about this one. Are there any other cases ...
4 years, 10 months ago (2016-01-31 08:10:58 UTC) #2
Brian Wilkerson
> All tests pass but I'm not certain about this one. I'm not either. > ...
4 years, 10 months ago (2016-02-01 15:43:21 UTC) #3
skybrian
4 years, 10 months ago (2016-02-01 22:31:10 UTC) #4
On 2016/02/01 15:43:21, Brian Wilkerson wrote:
> > All tests pass but I'm not certain about this one.
> 
> I'm not either.
> 
> > Are there any other cases where an Element is used as an AnalysisTarget?
> 
> Not that I know of, but we have discussed before the possibility of being able
> to resolve the bodies of functions / methods independently of one another,
which
> would then require keeping some kind of a key in the cache to represent each
> function, and the element seems like the natural fit.
> 
> On the other hand, we might want to find a solution that doesn't requiring
using
> elements as keys in the cache at all, which would take care of both use cases.

Okay, I will wait.

I think that, whatever we choose, only the Element subtypes that are actually
used
as AnalysisTargets should implement AnalysisTarget. Otherwise it's more
confusing
to figure out what's going on.

Powered by Google App Engine
This is Rietveld 408576698