| 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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1958 if (identical(token, contentEnd)) { | 1958 if (identical(token, contentEnd)) { |
| 1959 return ""; | 1959 return ""; |
| 1960 } | 1960 } |
| 1961 //TODO (danrubel): handle CDATA and replace HTML character encodings with th
e actual characters | 1961 //TODO (danrubel): handle CDATA and replace HTML character encodings with th
e actual characters |
| 1962 String content = token.lexeme; | 1962 String content = token.lexeme; |
| 1963 token = token.next; | 1963 token = token.next; |
| 1964 if (identical(token, contentEnd)) { | 1964 if (identical(token, contentEnd)) { |
| 1965 return content; | 1965 return content; |
| 1966 } | 1966 } |
| 1967 JavaStringBuilder buffer = new JavaStringBuilder(); | 1967 JavaStringBuilder buffer = new JavaStringBuilder(); |
| 1968 buffer.append(content); |
| 1968 while (!identical(token, contentEnd)) { | 1969 while (!identical(token, contentEnd)) { |
| 1969 buffer.append(token.lexeme); | 1970 buffer.append(token.lexeme); |
| 1970 token = token.next; | 1971 token = token.next; |
| 1971 } | 1972 } |
| 1972 return buffer.toString(); | 1973 return buffer.toString(); |
| 1973 } | 1974 } |
| 1974 | 1975 |
| 1975 @override | 1976 @override |
| 1976 Token get endToken { | 1977 Token get endToken { |
| 1977 if (nodeEnd != null) { | 1978 if (nodeEnd != null) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2034 */ | 2035 */ |
| 2035 abstract class XmlVisitor<R> { | 2036 abstract class XmlVisitor<R> { |
| 2036 R visitHtmlScriptTagNode(HtmlScriptTagNode node); | 2037 R visitHtmlScriptTagNode(HtmlScriptTagNode node); |
| 2037 | 2038 |
| 2038 R visitHtmlUnit(HtmlUnit htmlUnit); | 2039 R visitHtmlUnit(HtmlUnit htmlUnit); |
| 2039 | 2040 |
| 2040 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); | 2041 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); |
| 2041 | 2042 |
| 2042 R visitXmlTagNode(XmlTagNode xmlTagNode); | 2043 R visitXmlTagNode(XmlTagNode xmlTagNode); |
| 2043 } | 2044 } |
| OLD | NEW |