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 | |
6 // significant change. Please see the README file for more information. | |
7 | |
8 library engine.testing.html_factory; | 5 library engine.testing.html_factory; |
9 | 6 |
10 import 'package:analyzer/src/generated/html.dart'; | 7 import 'package:analyzer/src/generated/html.dart'; |
11 | 8 |
12 /** | 9 /** |
13 * Utility methods to create HTML nodes. | 10 * Utility methods to create HTML nodes. |
14 */ | 11 */ |
15 @deprecated | 12 @deprecated |
16 class HtmlFactory { | 13 class HtmlFactory { |
17 static XmlAttributeNode attribute(String name, String value) { | 14 static XmlAttributeNode attribute(String name, String value) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 static Token stringToken(String value) { | 54 static Token stringToken(String value) { |
58 return new Token.con2(TokenType.STRING, 0, value); | 55 return new Token.con2(TokenType.STRING, 0, value); |
59 } | 56 } |
60 | 57 |
61 static XmlTagNode tagNode(String name, | 58 static XmlTagNode tagNode(String name, |
62 [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) { | 59 [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) { |
63 return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(), | 60 return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(), |
64 null, null, null, null); | 61 null, null, null, null); |
65 } | 62 } |
66 } | 63 } |
OLD | NEW |