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

Issue 1743523003: Clear the element for imports and exports when the target doesn't exist. (Closed)

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

Description

Clear the element for imports and exports when the target doesn't exist. This fixes a bug where the unused import hint doesn't go away after removing the file being imported. (Also, I suspect it fixes a memory leak.) BUG= R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/44301b8001137c16de5735f433cb6bf39d88a798

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
M pkg/analyzer/lib/src/dart/element/builder.dart View 2 chunks +5 lines, -0 lines 1 comment Download
M pkg/analyzer/test/generated/compile_time_error_code_test.dart View 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
skybrian
4 years, 9 months ago (2016-02-27 06:38:51 UTC) #2
Brian Wilkerson
https://codereview.chromium.org/1743523003/diff/1/pkg/analyzer/lib/src/dart/element/builder.dart File pkg/analyzer/lib/src/dart/element/builder.dart (right): https://codereview.chromium.org/1743523003/diff/1/pkg/analyzer/lib/src/dart/element/builder.dart#newcode164 pkg/analyzer/lib/src/dart/element/builder.dart:164: node.element = null; I don't understand why this would ...
4 years, 9 months ago (2016-02-27 18:05:21 UTC) #3
skybrian
My suspicion is that when the user changes the target of an import statement, it ...
4 years, 9 months ago (2016-02-27 23:29:04 UTC) #4
Brian Wilkerson
Interesting. We need to confirm or deny your suspicion, but yes, the scenario you postulate ...
4 years, 9 months ago (2016-02-29 01:12:58 UTC) #5
skybrian
4 years, 9 months ago (2016-02-29 06:05:38 UTC) #6
skybrian
As you say, this is a special case of a more general problem. But I'm ...
4 years, 9 months ago (2016-02-29 06:48:02 UTC) #7
Brian Wilkerson
> As you say, this is a special case of a more general problem. But ...
4 years, 9 months ago (2016-02-29 16:53:07 UTC) #8
skybrian
4 years, 9 months ago (2016-02-29 18:06:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
44301b8001137c16de5735f433cb6bf39d88a798 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698