| 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.testing.html_factory; | 8 library engine.testing.html_factory; | 
| 9 | 9 | 
| 10 import 'package:analyzer/src/generated/html.dart'; | 10 import 'package:analyzer/src/generated/html.dart'; | 
| 11 | 11 | 
| 12 /** | 12 /** | 
| 13  * Utility methods to create HTML nodes. | 13  * Utility methods to create HTML nodes. | 
| 14  */ | 14  */ | 
|  | 15 @deprecated | 
| 15 class HtmlFactory { | 16 class HtmlFactory { | 
| 16   static XmlAttributeNode attribute(String name, String value) { | 17   static XmlAttributeNode attribute(String name, String value) { | 
| 17     Token nameToken = stringToken(name); | 18     Token nameToken = stringToken(name); | 
| 18     Token equalsToken = new Token.con1(TokenType.EQ, 0); | 19     Token equalsToken = new Token.con1(TokenType.EQ, 0); | 
| 19     Token valueToken = stringToken(value); | 20     Token valueToken = stringToken(value); | 
| 20     return new XmlAttributeNode(nameToken, equalsToken, valueToken); | 21     return new XmlAttributeNode(nameToken, equalsToken, valueToken); | 
| 21   } | 22   } | 
| 22 | 23 | 
| 23   static Token gtToken() { | 24   static Token gtToken() { | 
| 24     return new Token.con1(TokenType.GT, 0); | 25     return new Token.con1(TokenType.GT, 0); | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 56   static Token stringToken(String value) { | 57   static Token stringToken(String value) { | 
| 57     return new Token.con2(TokenType.STRING, 0, value); | 58     return new Token.con2(TokenType.STRING, 0, value); | 
| 58   } | 59   } | 
| 59 | 60 | 
| 60   static XmlTagNode tagNode(String name, | 61   static XmlTagNode tagNode(String name, | 
| 61       [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) { | 62       [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) { | 
| 62     return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(), | 63     return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(), | 
| 63         null, null, null, null); | 64         null, null, null, null); | 
| 64   } | 65   } | 
| 65 } | 66 } | 
| OLD | NEW | 
|---|