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

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

Issue 710343002: Check enums in switch cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments + process deferred actions in test Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../util/util.dart'; 10 import '../util/util.dart';
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 FunctionType get callType; 1411 FunctionType get callType;
1412 } 1412 }
1413 1413
1414 abstract class MixinApplicationElement extends ClassElement { 1414 abstract class MixinApplicationElement extends ClassElement {
1415 ClassElement get mixin; 1415 ClassElement get mixin;
1416 InterfaceType get mixinType; 1416 InterfaceType get mixinType;
1417 void set mixinType(InterfaceType value); 1417 void set mixinType(InterfaceType value);
1418 void addConstructor(FunctionElement constructor); 1418 void addConstructor(FunctionElement constructor);
1419 } 1419 }
1420 1420
1421 /// Enum declaration.
1422 abstract class EnumClassElement extends ClassElement {
1423 /// The static fields implied by the enum values.
1424 Iterable<FieldElement> get enumValues;
1425 }
1426
1421 /// The label entity defined by a labeled statement. 1427 /// The label entity defined by a labeled statement.
1422 abstract class LabelDefinition extends Entity { 1428 abstract class LabelDefinition extends Entity {
1423 Label get label; 1429 Label get label;
1424 String get labelName; 1430 String get labelName;
1425 JumpTarget get target; 1431 JumpTarget get target;
1426 1432
1427 bool get isTarget; 1433 bool get isTarget;
1428 bool get isBreakTarget; 1434 bool get isBreakTarget;
1429 bool get isContinueTarget; 1435 bool get isContinueTarget;
1430 1436
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 bool get isDeclaredByField; 1612 bool get isDeclaredByField;
1607 1613
1608 /// Returns `true` if this member is abstract. 1614 /// Returns `true` if this member is abstract.
1609 bool get isAbstract; 1615 bool get isAbstract;
1610 1616
1611 /// If abstract, [implementation] points to the overridden concrete member, 1617 /// If abstract, [implementation] points to the overridden concrete member,
1612 /// if any. Otherwise [implementation] points to the member itself. 1618 /// if any. Otherwise [implementation] points to the member itself.
1613 Member get implementation; 1619 Member get implementation;
1614 } 1620 }
1615 1621
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698