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

Unified Diff: lib/dom.dart

Issue 1312363005: Add Element.endSourceSpan (Closed) Base URL: https://github.com/dart-lang/html@master
Patch Set: Created 5 years, 4 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 | « no previous file | lib/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom.dart
diff --git a/lib/dom.dart b/lib/dom.dart
index 76eb85fdd1b9a49d830cbcb15bb209b1c055965a..9e647595788d84da842c7c44b0c645d7af679472 100644
--- a/lib/dom.dart
+++ b/lib/dom.dart
@@ -442,6 +442,12 @@ class Element extends Node with _ParentNode, _ElementAndDocument {
/// of this element.
final String localName;
+ // TODO(jmesserly): consider using an Expando for this, and put it in
+ // dom_parsing. Need to check the performance affect.
+ /// The source span of the end tag this element, if it was created by the
+ /// [HtmlParser]. May be `null` if does not have an implicit end tag.
+ FileSpan endSourceSpan;
+
Element._(this.localName, [this.namespaceUri]) : super._();
Element.tag(this.localName)
« no previous file with comments | « no previous file | lib/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698