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

Issue 725473005: During resolution, record the target of break/continue statements. (Closed)

Created:
6 years ago by Paul Berry
Modified:
6 years ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org, Johnni Winther
Visibility:
Public.

Description

During resolution, record the target of break/continue statements. This adds a new "target" field to BreakStatement and ContinueStatement which points to the AST for the statement that the break/continue is breaking from or continuing to. For labeled break and continue statements, this will always be the statement identified by the label (not the LabeledStatement itself but its child). For unlabeled break and continue statements, this will be the innermost enclosing loop (or switch statement, for break statements), provided that it is not in an enclosing function. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=41961

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1075 lines, -746 lines) Patch
M pkg/analyzer/lib/src/generated/ast.dart View 6 chunks +37 lines, -8 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element_resolver.dart View 8 chunks +148 lines, -164 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 5 chunks +39 lines, -26 lines 0 comments Download
M pkg/analyzer/lib/src/generated/parser.dart View 2 chunks +12 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 16 chunks +90 lines, -80 lines 3 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 45 chunks +749 lines, -464 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Paul Berry
6 years ago (2014-11-24 22:30:47 UTC) #2
Brian Wilkerson
https://codereview.chromium.org/725473005/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/725473005/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode11030 pkg/analyzer/lib/src/generated/resolver.dart:11030: * target of an unlabeled "break" statement, or null ...
6 years ago (2014-11-24 23:20:53 UTC) #3
Paul Berry
On 2014/11/24 23:20:53, Brian Wilkerson wrote: > https://codereview.chromium.org/725473005/diff/1/pkg/analyzer/lib/src/generated/resolver.dart > File pkg/analyzer/lib/src/generated/resolver.dart (right): > > https://codereview.chromium.org/725473005/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode11030 ...
6 years ago (2014-11-25 00:29:11 UTC) #4
Brian Wilkerson
After our discussion, LGTM
6 years ago (2014-11-25 16:56:00 UTC) #5
Paul Berry
6 years ago (2014-11-25 17:05:12 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 41961 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698