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

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

Issue 1873823002: Update elements, nodes and visitors for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix LocalVariableElementZ.constant Created 4 years, 8 months 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 8 import '../common/resolution.dart' show
9 Resolution; 9 Resolution;
10 import '../compiler.dart' show 10 import '../compiler.dart' show
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 } 1503 }
1504 1504
1505 abstract class MixinApplicationElement extends ClassElement { 1505 abstract class MixinApplicationElement extends ClassElement {
1506 ClassElement get mixin; 1506 ClassElement get mixin;
1507 InterfaceType get mixinType; 1507 InterfaceType get mixinType;
1508 } 1508 }
1509 1509
1510 /// Enum declaration. 1510 /// Enum declaration.
1511 abstract class EnumClassElement extends ClassElement { 1511 abstract class EnumClassElement extends ClassElement {
1512 /// The static fields implied by the enum values. 1512 /// The static fields implied by the enum values.
1513 List<FieldElement> get enumValues; 1513 List<EnumConstantElement> get enumValues;
1514 }
1515
1516 /// An enum constant value.
1517 abstract class EnumConstantElement extends FieldElement {
1518 /// The enum that declared this constant.
1519 EnumClassElement get enclosingClass;
1520
1521 /// The index of this constant within the values of the enum.
1522 int get index;
1514 } 1523 }
1515 1524
1516 /// The label entity defined by a labeled statement. 1525 /// The label entity defined by a labeled statement.
1517 abstract class LabelDefinition extends Entity { 1526 abstract class LabelDefinition extends Entity {
1518 Label get label; 1527 Label get label;
1519 String get labelName; 1528 String get labelName;
1520 JumpTarget get target; 1529 JumpTarget get target;
1521 1530
1522 bool get isTarget; 1531 bool get isTarget;
1523 bool get isBreakTarget; 1532 bool get isBreakTarget;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 bool get isDeclaredByField; 1726 bool get isDeclaredByField;
1718 1727
1719 /// Returns `true` if this member is abstract. 1728 /// Returns `true` if this member is abstract.
1720 bool get isAbstract; 1729 bool get isAbstract;
1721 1730
1722 /// If abstract, [implementation] points to the overridden concrete member, 1731 /// If abstract, [implementation] points to the overridden concrete member,
1723 /// if any. Otherwise [implementation] points to the member itself. 1732 /// if any. Otherwise [implementation] points to the member itself.
1724 Member get implementation; 1733 Member get implementation;
1725 } 1734 }
1726 1735
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698