| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 | 3 |
| 4 library engine.html.scanner; | 4 library engine.html.scanner; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
| 8 import 'source.dart'; | 8 import 'source.dart'; |
| 9 import 'error.dart'; | 9 import 'error.dart'; |
| 10 import 'instrumentation.dart'; | 10 import 'instrumentation.dart'; |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 String get content { | 1103 String get content { |
| 1104 Token token = _attributeEnd.next; | 1104 Token token = _attributeEnd.next; |
| 1105 if (identical(token, _contentEnd)) { | 1105 if (identical(token, _contentEnd)) { |
| 1106 return ""; | 1106 return ""; |
| 1107 } | 1107 } |
| 1108 String content = token.lexeme; | 1108 String content = token.lexeme; |
| 1109 token = token.next; | 1109 token = token.next; |
| 1110 if (identical(token, _contentEnd)) { | 1110 if (identical(token, _contentEnd)) { |
| 1111 return content; | 1111 return content; |
| 1112 } | 1112 } |
| 1113 StringBuffer buffer = new StringBuffer(); | 1113 JavaStringBuilder buffer = new JavaStringBuilder(); |
| 1114 while (token != _contentEnd) { | 1114 while (token != _contentEnd) { |
| 1115 buffer.write(token.lexeme); | 1115 buffer.append(token.lexeme); |
| 1116 token = token.next; | 1116 token = token.next; |
| 1117 } | 1117 } |
| 1118 return buffer.toString(); | 1118 return buffer.toString(); |
| 1119 } | 1119 } |
| 1120 /** | 1120 /** |
| 1121 * Answer the token (not {@code null}) after the content, which may be | 1121 * Answer the token (not {@code null}) after the content, which may be |
| 1122 * <ul> | 1122 * <ul> |
| 1123 * <li>(1) {@link TokenType#LT_SLASH} for nodes with open and close tags, or</
li> | 1123 * <li>(1) {@link TokenType#LT_SLASH} for nodes with open and close tags, or</
li> |
| 1124 * <li>(2) the {@link TokenType#LT} nodeStart of the next sibling node if this
node is self | 1124 * <li>(2) the {@link TokenType#LT} nodeStart of the next sibling node if this
node is self |
| 1125 * closing or the attributeEnd is {@link TokenType#SLASH_GT}, or</li> | 1125 * closing or the attributeEnd is {@link TokenType#SLASH_GT}, or</li> |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 * to edit the AST structure. | 1252 * to edit the AST structure. |
| 1253 * @return the children (not {@code null}, contains no {@code null}s) | 1253 * @return the children (not {@code null}, contains no {@code null}s) |
| 1254 */ | 1254 */ |
| 1255 List<XmlTagNode> get tagNodes => _tagNodes; | 1255 List<XmlTagNode> get tagNodes => _tagNodes; |
| 1256 void visitChildren(XmlVisitor<Object> visitor) { | 1256 void visitChildren(XmlVisitor<Object> visitor) { |
| 1257 for (XmlTagNode node in _tagNodes) { | 1257 for (XmlTagNode node in _tagNodes) { |
| 1258 node.accept(visitor); | 1258 node.accept(visitor); |
| 1259 } | 1259 } |
| 1260 } | 1260 } |
| 1261 } | 1261 } |
| OLD | NEW |