mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL flips the switch to make Sky use Dart. TBR=eseidel@chromium.org BUG=454613 Review URL: https://codereview.chromium.org/922893002
18 lines
380 B
Plaintext
18 lines
380 B
Plaintext
<script>
|
|
import "dart:sky";
|
|
|
|
int childNodeCount(parent) {
|
|
int count = 0;
|
|
for (Node node = parent.firstChild; node != null; node = node.nextSibling)
|
|
++count;
|
|
return count;
|
|
}
|
|
|
|
int childElementCount(parent) {
|
|
int count = 0;
|
|
for (Element element = parent.firstElementChild; element != null; element = element.nextElementSibling)
|
|
++count;
|
|
return count;
|
|
}
|
|
</script>
|