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

Unified Diff: tools/dom/scripts/idlparser.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tools/ddbg.dart ('k') | tools/dom/src/AttributeMap.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/idlparser.dart
diff --git a/tools/dom/scripts/idlparser.dart b/tools/dom/scripts/idlparser.dart
index 11ecad3338a157206f0186f38c2b7bb6355af39a..f0c6d60426d527a396ab25872857bba5934b209f 100644
--- a/tools/dom/scripts/idlparser.dart
+++ b/tools/dom/scripts/idlparser.dart
@@ -34,10 +34,10 @@ class IDLModule extends IDLNode {
List<IDLNode> elements) {
setExtAttrs(extAttrs);
this.annotations = annotations;
- this.interfaces = elements.filter((e) => e is IDLInterface);
- this.typedefs = elements.filter((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.filter((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.filter((e) => e is IDLOperation);
- attributes = members.filter((e) => e is IDLAttribute);
- constants = members.filter((e) => e is IDLConstant);
- snippets = members.filter((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');
« no previous file with comments | « tools/ddbg.dart ('k') | tools/dom/src/AttributeMap.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698