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

Issue 1686283002: Ensure that element handles never refer to Member objects. (Closed)

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

Description

Ensure that element handles never refer to Member objects. This is necessary in order for "is" checks (e.g. `element is ConstructorMember`) to function properly in the presence of element handles. To make this possible, it was necessary to lazify the `type` getter in ExecutableMember, so that attempting to wrap an element handle inside an ExecutableMember doesn't force the actual element to be resynthesized. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/b18cdd3f77f7118791096d57ae8305120bcbe629

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -39 lines) Patch
M pkg/analyzer/lib/src/dart/element/member.dart View 3 chunks +8 lines, -5 lines 2 comments Download
M pkg/analyzer/lib/src/summary/resynthesize.dart View 6 chunks +35 lines, -30 lines 2 comments Download
M pkg/analyzer/test/src/summary/resynthesize_test.dart View 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years, 10 months ago (2016-02-10 21:34:12 UTC) #2
scheglov
LGTM https://codereview.chromium.org/1686283002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart File pkg/analyzer/lib/src/dart/element/member.dart (right): https://codereview.chromium.org/1686283002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart#newcode140 pkg/analyzer/lib/src/dart/element/member.dart:140: [FunctionType type]) [FunctionType this._type] maybe? OTOH this is ...
4 years, 10 months ago (2016-02-10 21:53:27 UTC) #3
Paul Berry
https://codereview.chromium.org/1686283002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart File pkg/analyzer/lib/src/dart/element/member.dart (right): https://codereview.chromium.org/1686283002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart#newcode140 pkg/analyzer/lib/src/dart/element/member.dart:140: [FunctionType type]) On 2016/02/10 21:53:26, scheglov wrote: > [FunctionType ...
4 years, 10 months ago (2016-02-10 22:10:59 UTC) #4
Paul Berry
4 years, 10 months ago (2016-02-10 22:11:22 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b18cdd3f77f7118791096d57ae8305120bcbe629 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698