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

Issue 2541603002: Support for AwaitExpression in unlinked expressions. (Closed)

Created:
4 years ago by scheglov
Modified:
4 years ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support for AwaitExpression in unlinked expressions. This code was failing when analyzing dev_compiler with the new driver. var instanceVarArrowExpression = (f) async => await f; The reason was that we: 1. Don't understand AwaitExpression in AbstractConstExprSerializer. 2. So, we throw StateError. 3. So, AbstractConstExprSerializer.serialize() marks isValidConst. 4. But we don't check 'isValidConst' in linker. 5. The list of operations is empty, so we don't have anything in stack. 6. So, we throw an exception in linker. R=paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/38635ec91e933a21b5438ee0f2eed7b43991d49f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use DartType.flattenFutures() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -4 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/summary/format.fbs View 1 Binary file 0 comments Download
M pkg/analyzer/lib/src/summary/idl.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/link.dart View 1 3 chunks +12 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/summary/resynthesize.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_const_expr.dart View 2 chunks +5 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 1 1 chunk +25 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years ago (2016-11-29 18:22:20 UTC) #1
Paul Berry
https://codereview.chromium.org/2541603002/diff/1/pkg/analyzer/lib/src/summary/idl.dart File pkg/analyzer/lib/src/summary/idl.dart (right): https://codereview.chromium.org/2541603002/diff/1/pkg/analyzer/lib/src/summary/idl.dart#newcode2347 pkg/analyzer/lib/src/summary/idl.dart:2347: * into the stack. Otherwise, push `dynamic`. This comment ...
4 years ago (2016-11-29 19:15:58 UTC) #2
scheglov
PTAL https://codereview.chromium.org/2541603002/diff/1/pkg/analyzer/lib/src/summary/idl.dart File pkg/analyzer/lib/src/summary/idl.dart (right): https://codereview.chromium.org/2541603002/diff/1/pkg/analyzer/lib/src/summary/idl.dart#newcode2347 pkg/analyzer/lib/src/summary/idl.dart:2347: * into the stack. Otherwise, push `dynamic`. On ...
4 years ago (2016-11-29 19:39:13 UTC) #3
Paul Berry
lgtm
4 years ago (2016-11-29 20:13:20 UTC) #4
scheglov
4 years ago (2016-11-29 21:22:41 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
38635ec91e933a21b5438ee0f2eed7b43991d49f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698