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

Issue 2435313002: More improvements to DeclarationResolver. (Closed)

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

Description

More improvements to DeclarationResolver. This CL makes the following improvements: - When visiting an executable element, local variables and labels are rebuilt rather than matching them up to the old element model. This ensures that if the element model was resynthesized from an API summary (which doesn't contain local variables or labels), these elements are not lost. - When matching up existing elements, if the elements did not previously contain offsets, offsets are recorded. If they did previously contain offsets, the offsets are compared to verify that they match. This ensures that if the element model was resynthesized from an API summary (which doesn't contain offsets), the offsets will be correct. R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/396d7862b4e3c4bf5dfa87927301d884503b0557

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -102 lines) Patch
M pkg/analyzer/lib/src/dart/element/builder.dart View 3 chunks +28 lines, -23 lines 0 comments Download
M pkg/analyzer/lib/src/dart/element/element.dart View 12 chunks +38 lines, -24 lines 0 comments Download
M pkg/analyzer/lib/src/generated/declaration_resolver.dart View 18 chunks +72 lines, -49 lines 0 comments Download
M pkg/analyzer/test/generated/declaration_resolver_test.dart View 4 chunks +72 lines, -5 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years, 2 months ago (2016-10-21 16:55:19 UTC) #2
Brian Wilkerson
lgtm
4 years, 2 months ago (2016-10-21 17:52:24 UTC) #3
scheglov
LGTM
4 years, 2 months ago (2016-10-21 17:54:43 UTC) #4
Paul Berry
4 years, 2 months ago (2016-10-21 18:14:01 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
396d7862b4e3c4bf5dfa87927301d884503b0557 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698