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

Side by Side Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2581143003: implement LabeledStatement and Break in kernel (Closed)
Patch Set: fix some tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 1657
1658 void setBreakTarget(); 1658 void setBreakTarget();
1659 void setContinueTarget(); 1659 void setContinueTarget();
1660 } 1660 }
1661 1661
1662 /// A jump target is the reference point of a statement or switch-case, 1662 /// A jump target is the reference point of a statement or switch-case,
1663 /// either by label or as the default target of a break or continue. 1663 /// either by label or as the default target of a break or continue.
1664 abstract class JumpTarget extends Local { 1664 abstract class JumpTarget extends Local {
1665 Node get statement; 1665 Node get statement;
1666 int get nestingLevel; 1666 int get nestingLevel;
1667 Link<LabelDefinition> get labels; 1667 List<LabelDefinition> get labels;
1668 1668
1669 bool get isTarget; 1669 bool get isTarget;
1670 bool get isBreakTarget; 1670 bool get isBreakTarget;
1671 bool get isContinueTarget; 1671 bool get isContinueTarget;
1672 bool get isSwitch; 1672 bool get isSwitch;
1673 1673
1674 // TODO(kasperl): Try to get rid of these. 1674 // TODO(kasperl): Try to get rid of these.
1675 void set isBreakTarget(bool value); 1675 void set isBreakTarget(bool value);
1676 void set isContinueTarget(bool value); 1676 void set isContinueTarget(bool value);
1677 1677
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 /// by a field. 1934 /// by a field.
1935 bool get isDeclaredByField; 1935 bool get isDeclaredByField;
1936 1936
1937 /// Returns `true` if this member is abstract. 1937 /// Returns `true` if this member is abstract.
1938 bool get isAbstract; 1938 bool get isAbstract;
1939 1939
1940 /// If abstract, [implementation] points to the overridden concrete member, 1940 /// If abstract, [implementation] points to the overridden concrete member,
1941 /// if any. Otherwise [implementation] points to the member itself. 1941 /// if any. Otherwise [implementation] points to the member itself.
1942 Member get implementation; 1942 Member get implementation;
1943 } 1943 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | pkg/compiler/lib/src/elements/modelx.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698