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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/html.dart

Issue 18129004: Simplify constructors translation, improve code style. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/html.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/html.dart b/pkg/analyzer_experimental/lib/src/generated/html.dart
index 959088023a2627d99cd7cbc8ab55e2a5179fadad..2db1eab59fd282aae18296214a8eaeb9f6bd74a8 100644
--- a/pkg/analyzer_experimental/lib/src/generated/html.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/html.dart
@@ -48,12 +48,7 @@ class Token {
* @param type the token type (not `null`)
* @param offset the offset from the beginning of the file to the first character in the token
*/
- Token.con1(TokenType type, int offset) {
- _jtd_constructor_157_impl(type, offset);
- }
- _jtd_constructor_157_impl(TokenType type, int offset) {
- _jtd_constructor_158_impl(type, offset, type.lexeme);
- }
+ Token.con1(TokenType type, int offset) : this.con2(type, offset, type.lexeme);
/**
* Initialize a newly created token.
@@ -62,13 +57,10 @@ class Token {
* @param offset the offset from the beginning of the file to the first character in the token
* @param value the lexeme represented by this token (not `null`)
*/
- Token.con2(TokenType type2, int offset2, String value2) {
- _jtd_constructor_158_impl(type2, offset2, value2);
- }
- _jtd_constructor_158_impl(TokenType type2, int offset2, String value2) {
- this._type = type2;
- this._value = StringUtilities.intern(value2);
- this._offset = offset2;
+ Token.con2(TokenType type, int offset, String value) {
+ this._type = type;
+ this._value = StringUtilities.intern(value);
+ this._offset = offset;
}
/**
@@ -1630,8 +1622,7 @@ class HtmlParser extends XmlParser {
*
* @param source the source being parsed
*/
- HtmlParser(Source source) : super(source) {
- }
+ HtmlParser(Source source) : super(source);
/**
* Parse the tokens specified by the given scan result.

Powered by Google App Engine
This is Rietveld 408576698