Index: lib/html/scripts/systemnative.py |
diff --git a/lib/html/scripts/systemnative.py b/lib/html/scripts/systemnative.py |
index 5074a22582d77b5fa46a026db3341c6027109364..125ee4c0d1ebd5216cff1fe612d2142d2cca4959 100644 |
--- a/lib/html/scripts/systemnative.py |
+++ b/lib/html/scripts/systemnative.py |
@@ -398,7 +398,10 @@ class DartiumBackend(object): |
# TODO(sra): Use separate mixins for mutable implementations of List<T>. |
# TODO(sra): Use separate mixins for typed array implementations of List<T>. |
template_file = 'immutable_list_mixin.darttemplate' |
- template = self._template_loader.Load(template_file) |
+ has_contains = any(op.id == 'contains' for op in self._interface.operations) |
+ template = self._template_loader.Load( |
+ template_file, |
+ {'DEFINE_CONTAINS': not has_contains}) |
self._members_emitter.Emit(template, E=dart_element_type) |
def AmendIndexer(self, element_type): |