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

Issue 195983006: Constrain constant references from deferred libraries (Closed)

Created:
6 years, 9 months ago by sigurdm
Modified:
6 years, 8 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Constrain constant references from deferred libraries Now any reference to a constant from a deferred library in a constant context will give an static error. Also fixed the const-new expression constraint so it works with named constructors. Split the deferred_constraints_test into deferred_constraints_type_annotation_test and deferred_constraints_constants_test R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=33734

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -166 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 2 chunks +37 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 1 chunk +5 lines, -1 line 0 comments Download
D tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart View 1 chunk +0 lines, -26 lines 0 comments Download
A + tests/language/deferred_constraints_constants_lib.dart View 1 chunk +2 lines, -0 lines 0 comments Download
A tests/language/deferred_constraints_constants_test.dart View 1 1 chunk +63 lines, -0 lines 0 comments Download
M tests/language/deferred_constraints_lib.dart View 1 chunk +2 lines, -0 lines 0 comments Download
D tests/language/deferred_constraints_test.dart View 1 chunk +0 lines, -61 lines 0 comments Download
A + tests/language/deferred_constraints_type_annotation_test.dart View 2 chunks +5 lines, -13 lines 0 comments Download
M tests/language/language.status View 1 chunk +21 lines, -21 lines 0 comments Download
M tests/language/language_analyzer.status View 1 chunk +22 lines, -16 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +22 lines, -16 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sigurdm
6 years, 9 months ago (2014-03-12 13:46:33 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/195983006/diff/60001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/195983006/diff/60001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode424 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:424: if (send.receiver is Send) { Can't you just ...
6 years, 9 months ago (2014-03-12 16:48:13 UTC) #2
sigurdm
6 years, 9 months ago (2014-03-17 09:13:44 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r33734 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698