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

Issue 2485043004: Don't serialize elements of top-level function/constructor/method bodies. (Closed)

Created:
4 years, 1 month ago by scheglov
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't serialize elements of top-level function/constructor/method bodies. Instead in DeclarationResolver build these local elements in the bodies. As you can see, the summary_common tests are quite ugly now, we decided that we still have to serialize everything in variable initialiers, including local functions. So, this requires repurposing the tests to using initializers, and also keep buildLabelElements() in DeclarationResolver. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/e7350d171e92d8e630da6cebbeeae5887991e13d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -277 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/generated/declaration_resolver.dart View 7 chunks +37 lines, -0 lines 2 comments Download
M pkg/analyzer/lib/src/summary/link.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_ast.dart View 9 chunks +16 lines, -8 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summary_sdk.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/generated/declaration_resolver_test.dart View 2 chunks +10 lines, -6 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 2 chunks +18 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 23 chunks +251 lines, -257 lines 1 comment Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 1 month ago (2016-11-08 20:32:04 UTC) #1
Paul Berry
lgtm https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/test/src/summary/summary_common.dart File pkg/analyzer/test/src/summary/summary_common.dart (right): https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/test/src/summary/summary_common.dart#newcode1463 pkg/analyzer/test/src/summary/summary_common.dart:1463: // UnlinkedExecutable executable = Remove commented out code.
4 years, 1 month ago (2016-11-08 20:47:02 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/lib/src/generated/declaration_resolver.dart File pkg/analyzer/lib/src/generated/declaration_resolver.dart (right): https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/lib/src/generated/declaration_resolver.dart#newcode228 pkg/analyzer/lib/src/generated/declaration_resolver.dart:228: _walker._elementHolder.addFunction(element); Is it true that the holder can't ...
4 years, 1 month ago (2016-11-08 21:12:08 UTC) #3
scheglov
https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/lib/src/generated/declaration_resolver.dart File pkg/analyzer/lib/src/generated/declaration_resolver.dart (right): https://codereview.chromium.org/2485043004/diff/1/pkg/analyzer/lib/src/generated/declaration_resolver.dart#newcode228 pkg/analyzer/lib/src/generated/declaration_resolver.dart:228: _walker._elementHolder.addFunction(element); On 2016/11/08 21:12:08, Brian Wilkerson wrote: > Is ...
4 years, 1 month ago (2016-11-09 03:11:36 UTC) #4
scheglov
4 years, 1 month ago (2016-11-09 03:19:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e7350d171e92d8e630da6cebbeeae5887991e13d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698