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

Unified Diff: sdk/lib/html/scripts/idlparser.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/scripts/idlparser.dart
diff --git a/sdk/lib/html/scripts/idlparser.dart b/sdk/lib/html/scripts/idlparser.dart
index 58dceb7176db8a517e735cd45221cec13a61cfaf..f0c6d60426d527a396ab25872857bba5934b209f 100644
--- a/sdk/lib/html/scripts/idlparser.dart
+++ b/sdk/lib/html/scripts/idlparser.dart
@@ -34,10 +34,10 @@ class IDLModule extends IDLNode {
List<IDLNode> elements) {
setExtAttrs(extAttrs);
this.annotations = annotations;
- this.interfaces = elements.where((e) => e is IDLInterface);
- this.typedefs = elements.where((e) => e is IDLTypeDef);
+ this.interfaces = elements.where((e) => e is IDLInterface).toList();
+ this.typedefs = elements.where((e) => e is IDLTypeDef).toList();
this.implementsStatements =
- elements.where((e) => e is IDLImplementsStatement);
+ elements.where((e) => e is IDLImplementsStatement).toList();
}
toString() => '<IDLModule $id $extAttrs $annotations>';
@@ -101,10 +101,10 @@ class IDLInterface extends IDLNode {
this.annotations = ann;
if (this.parents == null) this.parents = [];
- operations = members.where((e) => e is IDLOperation);
- attributes = members.where((e) => e is IDLAttribute);
- constants = members.where((e) => e is IDLConstant);
- snippets = members.where((e) => e is IDLSnippet);
+ operations = members.where((e) => e is IDLOperation).toList();
+ attributes = members.where((e) => e is IDLAttribute).toList();
+ constants = members.where((e) => e is IDLConstant).toList();
+ snippets = members.where((e) => e is IDLSnippet).toList();
isSupplemental = extAttrs.has('Supplemental');
isNoInterfaceObject = extAttrs.has('NoInterfaceObject');

Powered by Google App Engine
This is Rietveld 408576698