Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 0438b26

Browse files
authored
Dart 3 compatibility: turn classes into mixins (#208)
These are private definitions and are only ever used in a `with` clause. They should just be changed to `mixin` to become compatible with Dart language 3.0.
1 parent 57b747d commit 0438b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dom.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AttributeName implements Comparable<Object> {
7676
}
7777

7878
// http://dom.spec.whatwg.org/#parentnode
79-
abstract class _ParentNode implements Node {
79+
mixin _ParentNode implements Node {
8080
// TODO(jmesserly): this is only a partial implementation
8181

8282
/// Seaches for the first descendant node matching the given selectors, using
@@ -103,7 +103,7 @@ abstract class _ParentNode implements Node {
103103
}
104104

105105
// http://dom.spec.whatwg.org/#interface-nonelementparentnode
106-
abstract class _NonElementParentNode implements _ParentNode {
106+
mixin _NonElementParentNode implements _ParentNode {
107107
// TODO(jmesserly): could be faster, should throw on invalid id.
108108
Element? getElementById(String id) => querySelector('#$id');
109109
}

0 commit comments

Comments
 (0)