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

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

Issue 727763003: Remove unused fields in analyzer. (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 10133 matching lines...) Expand 10 before | Expand all | Expand 10 after
10144 _validate(element, [_s(_l([_v("bar")])), _s2("other.dart")]); 10144 _validate(element, [_s(_l([_v("bar")])), _s2("other.dart")]);
10145 } 10145 }
10146 HtmlElementImpl _build(String contents) { 10146 HtmlElementImpl _build(String contents) {
10147 TestSource source = new TestSource( 10147 TestSource source = new TestSource(
10148 FileUtilities2.createFile("/test.html").getAbsolutePath(), 10148 FileUtilities2.createFile("/test.html").getAbsolutePath(),
10149 contents); 10149 contents);
10150 ChangeSet changeSet = new ChangeSet(); 10150 ChangeSet changeSet = new ChangeSet();
10151 changeSet.addedSource(source); 10151 changeSet.addedSource(source);
10152 _context.applyChanges(changeSet); 10152 _context.applyChanges(changeSet);
10153 HtmlUnitBuilder builder = new HtmlUnitBuilder(_context); 10153 HtmlUnitBuilder builder = new HtmlUnitBuilder(_context);
10154 return builder.buildHtmlElement( 10154 return builder.buildHtmlElement(source, _context.parseHtmlUnit(source));
10155 source,
10156 _context.getModificationStamp(source),
10157 _context.parseHtmlUnit(source));
10158 } 10155 }
10159 HtmlUnitBuilderTest_ExpectedLibrary 10156 HtmlUnitBuilderTest_ExpectedLibrary
10160 _l([List<HtmlUnitBuilderTest_ExpectedVariable> expectedVariables = HtmlUni tBuilderTest_ExpectedVariable.EMPTY_LIST]) => 10157 _l([List<HtmlUnitBuilderTest_ExpectedVariable> expectedVariables = HtmlUni tBuilderTest_ExpectedVariable.EMPTY_LIST]) =>
10161 new HtmlUnitBuilderTest_ExpectedLibrary(this, expectedVariables); 10158 new HtmlUnitBuilderTest_ExpectedLibrary(this, expectedVariables);
10162 _ExpectedScript _s(HtmlUnitBuilderTest_ExpectedLibrary expectedLibrary) => 10159 _ExpectedScript _s(HtmlUnitBuilderTest_ExpectedLibrary expectedLibrary) =>
10163 new _ExpectedScript.con1(expectedLibrary); 10160 new _ExpectedScript.con1(expectedLibrary);
10164 _ExpectedScript _s2(String scriptSourcePath) => 10161 _ExpectedScript _s2(String scriptSourcePath) =>
10165 new _ExpectedScript.con2(scriptSourcePath); 10162 new _ExpectedScript.con2(scriptSourcePath);
10166 HtmlUnitBuilderTest_ExpectedVariable _v(String varName) => 10163 HtmlUnitBuilderTest_ExpectedVariable _v(String varName) =>
10167 new HtmlUnitBuilderTest_ExpectedVariable(varName); 10164 new HtmlUnitBuilderTest_ExpectedVariable(varName);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
10283 10280
10284 void _verify(String contents, List<ErrorCode> expectedErrorCodes) { 10281 void _verify(String contents, List<ErrorCode> expectedErrorCodes) {
10285 this._contents = contents; 10282 this._contents = contents;
10286 TestSource source = new TestSource( 10283 TestSource source = new TestSource(
10287 FileUtilities2.createFile("/test.html").getAbsolutePath(), 10284 FileUtilities2.createFile("/test.html").getAbsolutePath(),
10288 contents); 10285 contents);
10289 ChangeSet changeSet = new ChangeSet(); 10286 ChangeSet changeSet = new ChangeSet();
10290 changeSet.addedSource(source); 10287 changeSet.addedSource(source);
10291 _context.applyChanges(changeSet); 10288 _context.applyChanges(changeSet);
10292 HtmlUnitBuilder builder = new HtmlUnitBuilder(_context); 10289 HtmlUnitBuilder builder = new HtmlUnitBuilder(_context);
10293 builder.buildHtmlElement( 10290 builder.buildHtmlElement(source, _context.parseHtmlUnit(source));
10294 source,
10295 _context.getModificationStamp(source),
10296 _context.parseHtmlUnit(source));
10297 GatheringErrorListener errorListener = new GatheringErrorListener(); 10291 GatheringErrorListener errorListener = new GatheringErrorListener();
10298 errorListener.addAll2(builder.errorListener); 10292 errorListener.addAll2(builder.errorListener);
10299 errorListener.assertErrorsWithCodes(expectedErrorCodes); 10293 errorListener.assertErrorsWithCodes(expectedErrorCodes);
10300 _errors = errorListener.errors; 10294 _errors = errorListener.errors;
10301 } 10295 }
10302 } 10296 }
10303 10297
10304 10298
10305 /** 10299 /**
10306 * Instances of the class `MockDartSdk` implement a [DartSdk]. 10300 * Instances of the class `MockDartSdk` implement a [DartSdk].
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
11122 Source scriptSource = externalScript.scriptSource; 11116 Source scriptSource = externalScript.scriptSource;
11123 if (_expectedExternalScriptName == null) { 11117 if (_expectedExternalScriptName == null) {
11124 expect(scriptSource, isNull, reason: "script $scriptIndex"); 11118 expect(scriptSource, isNull, reason: "script $scriptIndex");
11125 } else { 11119 } else {
11126 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); 11120 expect(scriptSource, isNotNull, reason: "script $scriptIndex");
11127 String actualExternalScriptName = scriptSource.shortName; 11121 String actualExternalScriptName = scriptSource.shortName;
11128 expect(actualExternalScriptName, _expectedExternalScriptName, reason: "scr ipt $scriptIndex"); 11122 expect(actualExternalScriptName, _expectedExternalScriptName, reason: "scr ipt $scriptIndex");
11129 } 11123 }
11130 } 11124 }
11131 } 11125 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698