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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 935613002: Make [EnumClassElement.enumValues] a [List]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index caa87de9361a7b79c13bbf51a09b03100c7e7545..40b247a0a292054c07b8c7830b3a39650bbc4ed6 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -2670,7 +2670,7 @@ abstract class ClassElementX extends BaseClassElementX {
class EnumClassElementX extends ClassElementX implements EnumClassElement {
final Enum node;
- Iterable<FieldElement> _enumValues;
+ List<FieldElement> _enumValues;
EnumClassElementX(String name, Element enclosing, int id, this.node)
: super(name, enclosing, id, STATE_NOT_STARTED);
@@ -2692,13 +2692,13 @@ class EnumClassElementX extends ClassElementX implements EnumClassElement {
List<DartType> computeTypeParameters(Compiler compiler) => const <DartType>[];
- Iterable<FieldElement> get enumValues {
+ List<FieldElement> get enumValues {
assert(invariant(this, _enumValues != null,
message: "enumValues has not been computed for $this."));
return _enumValues;
}
- void set enumValues(Iterable<FieldElement> values) {
+ void set enumValues(List<FieldElement> values) {
assert(invariant(this, _enumValues == null,
message: "enumValues has already been computed for $this."));
_enumValues = values;
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698