| 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');
|
|
|