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

Issue 1669383002: More aggressively fail when associating an existing element model with an AST (issue 25678) (Closed)

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

Description

More aggressively fail when associating an existing element model with an AST (issue 25678). The problem we're seeing is that mismatches between the element model and the AST are causing exceptions to be thrown that are not being handled by the normal exception handling in AnalysisTask. This causes the exception to be converted into an AnalysisException, which will cause the AST structure to be marked as being in ERROR, and it will be re-computed later after a change invalidates it. This also causes the exception to be thrown more frequently to prevent mismatches from being ignored (and to report the mismatch earlier). This only checks that every node in the AST has an element associated with it. The next step (in a future CL) is to ensure that the opposite problem doesn't exist (that is, that all elements are associated with a node). R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/ade0e4c5cdb9a3068f5704faf57e8bbf7c43bb96

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -148 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 18 chunks +179 lines, -127 lines 0 comments Download
M pkg/analyzer/test/generated/declaration_resolver_test.dart View 3 chunks +42 lines, -21 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Brian Wilkerson
4 years, 10 months ago (2016-02-05 18:50:28 UTC) #3
scheglov
LGTM
4 years, 10 months ago (2016-02-05 18:57:53 UTC) #4
Brian Wilkerson
4 years, 10 months ago (2016-02-05 20:28:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ade0e4c5cdb9a3068f5704faf57e8bbf7c43bb96 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698