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

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

Issue 975453004: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: pkg/analyzer/lib/src/generated/testing/html_factory.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/html_factory.dart b/pkg/analyzer/lib/src/generated/testing/html_factory.dart
index b833a268cdd868eddf3816e82ce28f06999f1b94..a8fcb5343a481b72f175731d578d1ec087a5a81b 100644
--- a/pkg/analyzer/lib/src/generated/testing/html_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/html_factory.dart
@@ -32,17 +32,10 @@ class HtmlFactory {
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 scriptTag(
+ [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) {
+ return new HtmlScriptTagNode(ltToken(), stringToken("script"), attributes,
+ sgtToken(), null, null, null, null);
}
static HtmlScriptTagNode scriptTagWithContent(String contents,
@@ -52,15 +45,8 @@ class HtmlFactory {
attributeEnd.setNext(contentToken);
Token contentEnd = ltsToken();
contentToken.setNext(contentEnd);
- return new HtmlScriptTagNode(
- ltToken(),
- stringToken("script"),
- attributes,
- attributeEnd,
- null,
- contentEnd,
- stringToken("script"),
- gtToken());
+ return new HtmlScriptTagNode(ltToken(), stringToken("script"), attributes,
+ attributeEnd, null, contentEnd, stringToken("script"), gtToken());
}
static Token sgtToken() {
@@ -71,16 +57,9 @@ class HtmlFactory {
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);
+ static XmlTagNode tagNode(String name,
+ [List<XmlAttributeNode> attributes = XmlAttributeNode.EMPTY_LIST]) {
+ return new XmlTagNode(ltToken(), stringToken(name), attributes, sgtToken(),
+ null, null, null, null);
}
}

Powered by Google App Engine
This is Rietveld 408576698