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

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

Issue 2231473002: Revert 6ad38498c8673f1fbe3e12c49b1cf590305676dd (PARSED_UNIT). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/task/dart.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library analyzer.test.generated.incremental_resolver_test; 5 library analyzer.test.generated.incremental_resolver_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/src/context/cache.dart'; 10 import 'package:analyzer/src/context/cache.dart';
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 ClassElement typeB = oldUnitElement.getType('B'); 1887 ClassElement typeB = oldUnitElement.getType('B');
1888 expect(oldUnitElement.getElementAt(typeB.nameOffset), typeB); 1888 expect(oldUnitElement.getElementAt(typeB.nameOffset), typeB);
1889 } 1889 }
1890 } 1890 }
1891 1891
1892 void _assertCacheResults( 1892 void _assertCacheResults(
1893 {bool expectLibraryUnchanged: true, 1893 {bool expectLibraryUnchanged: true,
1894 bool expectCachePostConstantsValid: true}) { 1894 bool expectCachePostConstantsValid: true}) {
1895 _assertCacheSourceResult(TOKEN_STREAM); 1895 _assertCacheSourceResult(TOKEN_STREAM);
1896 _assertCacheSourceResult(SCAN_ERRORS); 1896 _assertCacheSourceResult(SCAN_ERRORS);
1897 _assertCacheSourceResult(PARSED_UNIT1);
1898 _assertCacheSourceResult(PARSED_UNIT); 1897 _assertCacheSourceResult(PARSED_UNIT);
1899 _assertCacheSourceResult(PARSE_ERRORS); 1898 _assertCacheSourceResult(PARSE_ERRORS);
1900 _assertCacheSourceResult(RESOLVE_DIRECTIVES_ERRORS);
1901 if (!expectLibraryUnchanged) { 1899 if (!expectLibraryUnchanged) {
1902 return; 1900 return;
1903 } 1901 }
1904 _assertCacheSourceResult(LIBRARY_ELEMENT1); 1902 _assertCacheSourceResult(LIBRARY_ELEMENT1);
1905 _assertCacheSourceResult(LIBRARY_ELEMENT2); 1903 _assertCacheSourceResult(LIBRARY_ELEMENT2);
1906 _assertCacheSourceResult(LIBRARY_ELEMENT3); 1904 _assertCacheSourceResult(LIBRARY_ELEMENT3);
1907 _assertCacheSourceResult(LIBRARY_ELEMENT4); 1905 _assertCacheSourceResult(LIBRARY_ELEMENT4);
1908 _assertCacheSourceResult(LIBRARY_ELEMENT5); 1906 _assertCacheSourceResult(LIBRARY_ELEMENT5);
1909 _assertCacheSourceResult(LIBRARY_ELEMENT6); 1907 _assertCacheSourceResult(LIBRARY_ELEMENT6);
1910 _assertCacheSourceResult(LIBRARY_ELEMENT7); 1908 _assertCacheSourceResult(LIBRARY_ELEMENT7);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 void logException(Object exception, [Object stackTrace]) { 2334 void logException(Object exception, [Object stackTrace]) {
2337 lastException = exception; 2335 lastException = exception;
2338 lastStackTrace = stackTrace; 2336 lastStackTrace = stackTrace;
2339 } 2337 }
2340 2338
2341 @override 2339 @override
2342 logging.LoggingTimer startTimer() { 2340 logging.LoggingTimer startTimer() {
2343 return new logging.LoggingTimer(this); 2341 return new logging.LoggingTimer(this);
2344 } 2342 }
2345 } 2343 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/task/dart.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698