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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest.dart

Issue 677303002: Remove unnecessary List creation (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.all_the_rest_test; 8 library engine.all_the_rest_test;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 10923 matching lines...) Expand 10 before | Expand all | Expand 10 after
10934 } 10934 }
10935 /** 10935 /**
10936 * Set the tags to be expected when visiting 10936 * Set the tags to be expected when visiting
10937 * 10937 *
10938 * @param expectedTags the expected tags 10938 * @param expectedTags the expected tags
10939 */ 10939 */
10940 void expectTags(List<XmlValidator_Tag> expectedTags) { 10940 void expectTags(List<XmlValidator_Tag> expectedTags) {
10941 // Flatten the hierarchy into expected order in which the tags are visited 10941 // Flatten the hierarchy into expected order in which the tags are visited
10942 List<XmlValidator_Tag> expected = new List<XmlValidator_Tag>(); 10942 List<XmlValidator_Tag> expected = new List<XmlValidator_Tag>();
10943 _expectTags(expected, expectedTags); 10943 _expectTags(expected, expectedTags);
10944 this._expectedTagsInOrderVisited = new List.from(expected); 10944 this._expectedTagsInOrderVisited = expected;
10945 } 10945 }
10946 @override 10946 @override
10947 Object visitHtmlUnit(ht.HtmlUnit node) { 10947 Object visitHtmlUnit(ht.HtmlUnit node) {
10948 if (node.parent != null) { 10948 if (node.parent != null) {
10949 _errors.add("HtmlUnit should not have a parent"); 10949 _errors.add("HtmlUnit should not have a parent");
10950 } 10950 }
10951 if (node.endToken.type != ht.TokenType.EOF) { 10951 if (node.endToken.type != ht.TokenType.EOF) {
10952 _errors.add("HtmlUnit end token should be of type EOF"); 10952 _errors.add("HtmlUnit end token should be of type EOF");
10953 } 10953 }
10954 _validateNode(node); 10954 _validateNode(node);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
11175 } else { 11175 } else {
11176 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource); 11176 JUnitTestCase.assertNotNullMsg("script ${scriptIndex}", scriptSource);
11177 String actualExternalScriptName = scriptSource.shortName; 11177 String actualExternalScriptName = scriptSource.shortName;
11178 JUnitTestCase.assertEqualsMsg( 11178 JUnitTestCase.assertEqualsMsg(
11179 "script ${scriptIndex}", 11179 "script ${scriptIndex}",
11180 _expectedExternalScriptName, 11180 _expectedExternalScriptName,
11181 actualExternalScriptName); 11181 actualExternalScriptName);
11182 } 11182 }
11183 } 11183 }
11184 } 11184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698