| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.html; | 8 library engine.html; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 | 1536 |
| 1537 /** | 1537 /** |
| 1538 * Set the parent of this node to the given node. | 1538 * Set the parent of this node to the given node. |
| 1539 * | 1539 * |
| 1540 * @param newParent the node that is to be made the parent of this node | 1540 * @param newParent the node that is to be made the parent of this node |
| 1541 */ | 1541 */ |
| 1542 void set parent(XmlNode newParent) { | 1542 void set parent(XmlNode newParent) { |
| 1543 XmlNode current = newParent; | 1543 XmlNode current = newParent; |
| 1544 while (current != null) { | 1544 while (current != null) { |
| 1545 if (identical(current, this)) { | 1545 if (identical(current, this)) { |
| 1546 AnalysisEngine.instance.logger.logError2("Circular structure while setti
ng an XML node's parent", new IllegalArgumentException(_buildRecursiveStructureM
essage(newParent))); | 1546 AnalysisEngine.instance.logger.logError( |
| 1547 "Circular structure while setting an XML node's parent", |
| 1548 new CaughtException( |
| 1549 new ArgumentError(_buildRecursiveStructureMessage(newParent)), |
| 1550 null)); |
| 1547 return; | 1551 return; |
| 1548 } | 1552 } |
| 1549 current = current.parent; | 1553 current = current.parent; |
| 1550 } | 1554 } |
| 1551 _parent = newParent; | 1555 _parent = newParent; |
| 1552 } | 1556 } |
| 1553 } | 1557 } |
| 1554 | 1558 |
| 1555 /** | 1559 /** |
| 1556 * Instances of the class `XmlParser` are used to parse tokens into a AST struct
ure comprised | 1560 * Instances of the class `XmlParser` are used to parse tokens into a AST struct
ure comprised |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2040 */ | 2044 */ |
| 2041 abstract class XmlVisitor<R> { | 2045 abstract class XmlVisitor<R> { |
| 2042 R visitHtmlScriptTagNode(HtmlScriptTagNode node); | 2046 R visitHtmlScriptTagNode(HtmlScriptTagNode node); |
| 2043 | 2047 |
| 2044 R visitHtmlUnit(HtmlUnit htmlUnit); | 2048 R visitHtmlUnit(HtmlUnit htmlUnit); |
| 2045 | 2049 |
| 2046 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); | 2050 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); |
| 2047 | 2051 |
| 2048 R visitXmlTagNode(XmlTagNode xmlTagNode); | 2052 R visitXmlTagNode(XmlTagNode xmlTagNode); |
| 2049 } | 2053 } |
| OLD | NEW |