Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: tools/dom/scripts/dartmetadata.py

Issue 2857143003: dart2js_html: Fix for issue 29538 - some returned lists may be null (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': [
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698