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

Issue 12393004: Check if enclosingElement is null. (Closed)

Created:
7 years, 9 months ago by karlklose
Modified:
7 years, 9 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 chunk +2 lines, -1 line 6 comments Download

Messages

Total messages: 6 (0 generated)
karlklose
Committed patchset #1 manually as r19287 (presubmit successful).
7 years, 9 months ago (2013-03-01 09:47:39 UTC) #1
karlklose
TBR'ed to fix the build.
7 years, 9 months ago (2013-03-01 09:48:06 UTC) #2
ngeoffray
LGTM, but https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1640 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1640: inCheckContext = compiler.enableTypeAssertions && Comment? https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1642 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1642: ...
7 years, 9 months ago (2013-03-01 09:49:18 UTC) #3
ahe
DBC https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1642 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1642: !element.enclosingElement.isTypedef()), On 2013/03/01 09:49:18, ngeoffray wrote: > So ...
7 years, 9 months ago (2013-03-01 09:54:36 UTC) #4
karlklose
https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1640 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1640: inCheckContext = compiler.enableTypeAssertions && Created a CL. https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1642 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1642: ...
7 years, 9 months ago (2013-03-01 10:21:44 UTC) #5
ahe
7 years, 9 months ago (2013-03-12 08:15:40 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/im...
File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right):

https://codereview.chromium.org/12393004/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:1642:
!element.enclosingElement.isTypedef()),
On 2013/03/01 10:21:44, karlklose wrote:
> When the signature resolver asks the VariableListElement of the typdef for its
> type, the creates a ResolverVisitor to call resolveReturnType.

That does not explain why you have an element that does not have an enclosing
element here.

Powered by Google App Engine
This is Rietveld 408576698