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

Unified Diff: analyzer/lib/src/generated/testing/html_factory.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: analyzer/lib/src/generated/testing/html_factory.dart
diff --git a/analyzer/lib/src/generated/testing/html_factory.dart b/analyzer/lib/src/generated/testing/html_factory.dart
deleted file mode 100644
index 5006c02ee418b27d8bad73b012e39be1c8527ad0..0000000000000000000000000000000000000000
--- a/analyzer/lib/src/generated/testing/html_factory.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// This code was auto-generated, is not intended to be edited, and is subject to
-// significant change. Please see the README file for more information.
-
-library engine.testing.html_factory;
-
-import 'package:analyzer/src/generated/html.dart';
-
-/**
- * Utility methods to create HTML nodes.
- */
-@deprecated
-class HtmlFactory {
- static XmlAttributeNode attribute(String name, String value) {
- Token nameToken = stringToken(name);
- Token equalsToken = new Token.con1(TokenType.EQ, 0);
- Token valueToken = stringToken(value);
- return new XmlAttributeNode(nameToken, equalsToken, valueToken);
- }
-
- static Token gtToken() {
- return new Token.con1(TokenType.GT, 0);
- }
-
- static Token ltsToken() {
- return new Token.con1(TokenType.LT_SLASH, 0);
- }
-
- static Token ltToken() {
- return new Token.con1(TokenType.LT, 0);
- }
-
- static HtmlScriptTagNode scriptTag(
- [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) {
- return new HtmlScriptTagNode(ltToken(), stringToken("script"), attributes,
- sgtToken(), null, null, null, null);
- }
-
- static HtmlScriptTagNode scriptTagWithContent(String contents,
- [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) {
- Token attributeEnd = gtToken();
- Token contentToken = stringToken(contents);
- attributeEnd.setNext(contentToken);
- Token contentEnd = ltsToken();
- contentToken.setNext(contentEnd);
- return new HtmlScriptTagNode(ltToken(), stringToken("script"), attributes,
- attributeEnd, null, contentEnd, stringToken("script"), gtToken());
- }
-
- static Token sgtToken() {
- return new Token.con1(TokenType.SLASH_GT, 0);
- }
-
- static Token stringToken(String value) {
- return new Token.con2(TokenType.STRING, 0, value);
- }
-
- static XmlTagNode tagNode(String name,
- [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) {
- return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(),
- null, null, null, null);
- }
-}
« no previous file with comments | « analyzer/lib/src/generated/testing/element_factory.dart ('k') | analyzer/lib/src/generated/testing/test_type_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698