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

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

Issue 712083003: Create fewer unnecessary lists (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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.html; 8 library engine.html;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
11 import 'java_core.dart'; 11 import 'java_core.dart';
12 import 'java_engine.dart'; 12 import 'java_engine.dart';
13 import 'source.dart'; 13 import 'source.dart';
14 import 'error.dart' show AnalysisErrorListener; 14 import 'error.dart' show AnalysisErrorListener;
15 import 'scanner.dart' as sc show Scanner, SubSequenceReader, Token; 15 import 'scanner.dart' as sc show Scanner, SubSequenceReader, Token;
16 import 'parser.dart' show Parser; 16 import 'parser.dart' show Parser;
17 import 'ast.dart'; 17 import 'ast.dart';
18 import 'element.dart'; 18 import 'element.dart';
19 import 'engine.dart' show AnalysisEngine, AngularHtmlUnitResolver, ExpressionVis itor; 19 import 'engine.dart' show AnalysisEngine, AngularHtmlUnitResolver, ExpressionVis itor;
20 20
21 /** 21 /**
22 * The abstract class `AbstractScanner` implements a scanner for HTML code. Subc lasses are 22 * The abstract class `AbstractScanner` implements a scanner for HTML code. Subc lasses are
23 * required to implement the interface used to access the characters being scann ed. 23 * required to implement the interface used to access the characters being scann ed.
24 */ 24 */
25 abstract class AbstractScanner { 25 abstract class AbstractScanner {
26 static List<String> _NO_PASS_THROUGH_ELEMENTS = <String> []; 26 static List<String> _NO_PASS_THROUGH_ELEMENTS = <String>[];
27 27
28 /** 28 /**
29 * The source being scanned. 29 * The source being scanned.
30 */ 30 */
31 final Source source; 31 final Source source;
32 32
33 /** 33 /**
34 * The token pointing to the head of the linked list of tokens. 34 * The token pointing to the head of the linked list of tokens.
35 */ 35 */
36 Token _tokens; 36 Token _tokens;
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 class XmlAttributeNode extends XmlNode { 1189 class XmlAttributeNode extends XmlNode {
1190 final Token _name; 1190 final Token _name;
1191 1191
1192 final Token equals; 1192 final Token equals;
1193 1193
1194 final Token _value; 1194 final Token _value;
1195 1195
1196 List<XmlExpression> expressions = XmlExpression.EMPTY_ARRAY; 1196 List<XmlExpression> expressions = XmlExpression.EMPTY_ARRAY;
1197 1197
1198 /** 1198 /**
1199 * An empty list of XML attribute nodes.
1200 */
1201 static const List<XmlAttributeNode> EMPTY_LIST = const <XmlAttributeNode>[];
1202
1203 /**
1199 * Construct a new instance representing an XML attribute. 1204 * Construct a new instance representing an XML attribute.
1200 * 1205 *
1201 * @param name the name token (not `null`). This may be a zero length token if the attribute 1206 * @param name the name token (not `null`). This may be a zero length token if the attribute
1202 * is badly formed. 1207 * is badly formed.
1203 * @param equals the equals sign or `null` if none 1208 * @param equals the equals sign or `null` if none
1204 * @param value the value token (not `null`) 1209 * @param value the value token (not `null`)
1205 */ 1210 */
1206 XmlAttributeNode(this._name, this.equals, this._value); 1211 XmlAttributeNode(this._name, this.equals, this._value);
1207 1212
1208 @override 1213 @override
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 */ 2049 */
2045 abstract class XmlVisitor<R> { 2050 abstract class XmlVisitor<R> {
2046 R visitHtmlScriptTagNode(HtmlScriptTagNode node); 2051 R visitHtmlScriptTagNode(HtmlScriptTagNode node);
2047 2052
2048 R visitHtmlUnit(HtmlUnit htmlUnit); 2053 R visitHtmlUnit(HtmlUnit htmlUnit);
2049 2054
2050 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); 2055 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode);
2051 2056
2052 R visitXmlTagNode(XmlTagNode xmlTagNode); 2057 R visitXmlTagNode(XmlTagNode xmlTagNode);
2053 } 2058 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698