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

Issue 1674073002: Add UnlinkedConst.isValid and set it during summarizing. (Closed)

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

Description

Add UnlinkedConst.isValid and set it during summarizing. Several final fields in SDK have not valid constant expression initializers, which is OK because the enclosing classes don't have constant constructors. However we were throwing exceptions and failing building SDK summaries. Alternatively we could just ignore final field initializers in classes without a constant constructor. But it seems to me that we need to catch exceptions anyway, just in case of invalid code. R=paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/0a3b938409c2f29868defbf8f71b8dd3043a976d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Generate the 'isInvalid' property. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -146 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 1 12 chunks +50 lines, -23 lines 0 comments Download
M pkg/analyzer/lib/src/summary/idl.dart View 1 3 chunks +11 lines, -3 lines 2 comments Download
M pkg/analyzer/lib/src/summary/summarize_const_expr.dart View 1 11 chunks +119 lines, -113 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 1 3 chunks +8 lines, -6 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 1 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 10 months ago (2016-02-07 20:54:44 UTC) #1
Paul Berry
Are you intending to modify the resynthesis code in a future CL? Or are no ...
4 years, 10 months ago (2016-02-08 15:02:23 UTC) #2
scheglov
PTAL Yes, resynthesizer will be updated in another CL. https://codereview.chromium.org/1674073002/diff/1/pkg/analyzer/lib/src/summary/idl.dart File pkg/analyzer/lib/src/summary/idl.dart (right): https://codereview.chromium.org/1674073002/diff/1/pkg/analyzer/lib/src/summary/idl.dart#newcode522 pkg/analyzer/lib/src/summary/idl.dart:522: ...
4 years, 10 months ago (2016-02-08 17:01:42 UTC) #3
Paul Berry
lgtm https://codereview.chromium.org/1674073002/diff/20001/pkg/analyzer/lib/src/summary/idl.dart File pkg/analyzer/lib/src/summary/idl.dart (right): https://codereview.chromium.org/1674073002/diff/20001/pkg/analyzer/lib/src/summary/idl.dart#newcode1288 pkg/analyzer/lib/src/summary/idl.dart:1288: * that it is a valid , check ...
4 years, 10 months ago (2016-02-08 17:07:41 UTC) #4
scheglov
4 years, 10 months ago (2016-02-08 17:11:16 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
0a3b938409c2f29868defbf8f71b8dd3043a976d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698