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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 895813002: Tweak toString() for better type inference (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index f263b294eb1ee2a1759c6c2be4387c5ea4c61773..22de38f736857acf14cbf37bc8994f66008675dc 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -813,7 +813,13 @@ $endif
@DomName('Element.localName')
@DocsEditable()
+$if DART2JS
+ @Returns('String')
+ // Non-null for Elements.
+ String get localName => JS('String', '#', _localName);
+$else
String get localName => _localName;
+$endif
/**
* A URI that identifies the XML namespace of this element.
« no previous file with comments | « tools/dom/templates/html/impl/impl_DOMException.darttemplate ('k') | tools/dom/templates/html/impl/impl_Location.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698