Index: tools/dom/scripts/dartmetadata.py |
diff --git a/tools/dom/scripts/dartmetadata.py b/tools/dom/scripts/dartmetadata.py |
index 339a33c3fab35256165fe0bf31f8b3155040428a..f278864aa3b231e238dfa1e5d746d1738b35316d 100644 |
--- a/tools/dom/scripts/dartmetadata.py |
+++ b/tools/dom/scripts/dartmetadata.py |
@@ -92,6 +92,20 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', { |
"@Returns('NodeList|HtmlCollection')", |
], |
+ # querysSelectorAll never returns `null`. |
+ 'Document.querySelectorAll': [ |
+ "@Creates('NodeList')", |
+ "@Returns('NodeList')", |
+ ], |
+ 'DocumentFragment.querySelectorAll': [ |
+ "@Creates('NodeList')", |
+ "@Returns('NodeList')", |
+ ], |
+ 'Element.querySelectorAll': [ |
+ "@Creates('NodeList')", |
+ "@Returns('NodeList')", |
+ ], |
+ |
# Methods returning Window can return a local window, or a cross-frame |
# window (=Object) that needs wrapping. |
'Window': [ |