Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: pkg/analyzer/lib/src/generated/testing/html_factory.dart

Issue 1199303002: Mark more code as deprecated (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/testing/element_factory.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/testing/element_factory.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698