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

Side by Side Diff: packages/analyzer/lib/src/generated/incremental_resolver.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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
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 engine.incremental_resolver; 5 library engine.incremental_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/src/context/cache.dart' 10 import 'package:analyzer/src/context/cache.dart'
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 isByTask(LibraryUnitErrorsTask.DESCRIPTOR) || 914 isByTask(LibraryUnitErrorsTask.DESCRIPTOR) ||
915 isByTask(ParseDartTask.DESCRIPTOR) || 915 isByTask(ParseDartTask.DESCRIPTOR) ||
916 isByTask(PartiallyResolveUnitReferencesTask.DESCRIPTOR) || 916 isByTask(PartiallyResolveUnitReferencesTask.DESCRIPTOR) ||
917 isByTask(ScanDartTask.DESCRIPTOR) || 917 isByTask(ScanDartTask.DESCRIPTOR) ||
918 isByTask(ResolveInstanceFieldsInUnitTask.DESCRIPTOR) || 918 isByTask(ResolveInstanceFieldsInUnitTask.DESCRIPTOR) ||
919 isByTask(ResolveLibraryReferencesTask.DESCRIPTOR) || 919 isByTask(ResolveLibraryReferencesTask.DESCRIPTOR) ||
920 isByTask(ResolveLibraryTypeNamesTask.DESCRIPTOR) || 920 isByTask(ResolveLibraryTypeNamesTask.DESCRIPTOR) ||
921 isByTask(ResolveUnitTask.DESCRIPTOR) || 921 isByTask(ResolveUnitTask.DESCRIPTOR) ||
922 isByTask(ResolveUnitTypeNamesTask.DESCRIPTOR) || 922 isByTask(ResolveUnitTypeNamesTask.DESCRIPTOR) ||
923 isByTask(ResolveVariableReferencesTask.DESCRIPTOR) || 923 isByTask(ResolveVariableReferencesTask.DESCRIPTOR) ||
924 isByTask(StrongModeVerifyUnitTask.DESCRIPTOR) ||
924 isByTask(VerifyUnitTask.DESCRIPTOR)) { 925 isByTask(VerifyUnitTask.DESCRIPTOR)) {
925 return DeltaResult.KEEP_CONTINUE; 926 return DeltaResult.KEEP_CONTINUE;
926 } 927 }
927 // invalidate all the other results 928 // invalidate all the other results
928 return DeltaResult.INVALIDATE_NO_DELTA; 929 return DeltaResult.INVALIDATE_NO_DELTA;
929 } 930 }
930 } 931 }
931 932
932 /** 933 /**
933 * Instances of the class [IncrementalResolver] resolve the smallest portion of 934 * Instances of the class [IncrementalResolver] resolve the smallest portion of
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 _shiftEntryErrors_NEW(); 1239 _shiftEntryErrors_NEW();
1239 } 1240 }
1240 } 1241 }
1241 1242
1242 void _shiftEntryErrors_NEW() { 1243 void _shiftEntryErrors_NEW() {
1243 _shiftErrors_NEW(HINTS); 1244 _shiftErrors_NEW(HINTS);
1244 _shiftErrors_NEW(LINTS); 1245 _shiftErrors_NEW(LINTS);
1245 _shiftErrors_NEW(LIBRARY_UNIT_ERRORS); 1246 _shiftErrors_NEW(LIBRARY_UNIT_ERRORS);
1246 _shiftErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS); 1247 _shiftErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS);
1247 _shiftErrors_NEW(RESOLVE_UNIT_ERRORS); 1248 _shiftErrors_NEW(RESOLVE_UNIT_ERRORS);
1249 _shiftErrors_NEW(STRONG_MODE_ERRORS);
1248 _shiftErrors_NEW(VARIABLE_REFERENCE_ERRORS); 1250 _shiftErrors_NEW(VARIABLE_REFERENCE_ERRORS);
1249 _shiftErrors_NEW(VERIFY_ERRORS); 1251 _shiftErrors_NEW(VERIFY_ERRORS);
1250 } 1252 }
1251 1253
1252 void _shiftEntryErrors_OLD() { 1254 void _shiftEntryErrors_OLD() {
1253 _shiftErrors_OLD(DartEntry.RESOLUTION_ERRORS); 1255 _shiftErrors_OLD(DartEntry.RESOLUTION_ERRORS);
1254 _shiftErrors_OLD(DartEntry.VERIFICATION_ERRORS); 1256 _shiftErrors_OLD(DartEntry.VERIFICATION_ERRORS);
1255 _shiftErrors_OLD(DartEntry.HINTS); 1257 _shiftErrors_OLD(DartEntry.HINTS);
1256 _shiftErrors_OLD(DartEntry.LINTS); 1258 _shiftErrors_OLD(DartEntry.LINTS);
1257 } 1259 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 _updateEntry_NEW(); 1311 _updateEntry_NEW();
1310 } 1312 }
1311 } 1313 }
1312 1314
1313 void _updateEntry_NEW() { 1315 void _updateEntry_NEW() {
1314 _updateErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS, []); 1316 _updateErrors_NEW(RESOLVE_TYPE_NAMES_ERRORS, []);
1315 _updateErrors_NEW(RESOLVE_UNIT_ERRORS, _resolveErrors); 1317 _updateErrors_NEW(RESOLVE_UNIT_ERRORS, _resolveErrors);
1316 _updateErrors_NEW(VARIABLE_REFERENCE_ERRORS, []); 1318 _updateErrors_NEW(VARIABLE_REFERENCE_ERRORS, []);
1317 _updateErrors_NEW(VERIFY_ERRORS, _verifyErrors); 1319 _updateErrors_NEW(VERIFY_ERRORS, _verifyErrors);
1318 // invalidate results we don't update incrementally 1320 // invalidate results we don't update incrementally
1321 newUnitEntry.setState(STRONG_MODE_ERRORS, CacheState.INVALID);
1319 newUnitEntry.setState(USED_IMPORTED_ELEMENTS, CacheState.INVALID); 1322 newUnitEntry.setState(USED_IMPORTED_ELEMENTS, CacheState.INVALID);
1320 newUnitEntry.setState(USED_LOCAL_ELEMENTS, CacheState.INVALID); 1323 newUnitEntry.setState(USED_LOCAL_ELEMENTS, CacheState.INVALID);
1321 newUnitEntry.setState(HINTS, CacheState.INVALID); 1324 newUnitEntry.setState(HINTS, CacheState.INVALID);
1322 newUnitEntry.setState(LINTS, CacheState.INVALID); 1325 newUnitEntry.setState(LINTS, CacheState.INVALID);
1323 } 1326 }
1324 1327
1325 void _updateEntry_OLD() { 1328 void _updateEntry_OLD() {
1326 _updateErrors_OLD(DartEntry.RESOLUTION_ERRORS, _resolveErrors); 1329 _updateErrors_OLD(DartEntry.RESOLUTION_ERRORS, _resolveErrors);
1327 _updateErrors_OLD(DartEntry.VERIFICATION_ERRORS, _verifyErrors); 1330 _updateErrors_OLD(DartEntry.VERIFICATION_ERRORS, _verifyErrors);
1328 } 1331 }
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 @override 2144 @override
2142 String toString() => name; 2145 String toString() => name;
2143 } 2146 }
2144 2147
2145 class _TokenPair { 2148 class _TokenPair {
2146 final _TokenDifferenceKind kind; 2149 final _TokenDifferenceKind kind;
2147 final Token oldToken; 2150 final Token oldToken;
2148 final Token newToken; 2151 final Token newToken;
2149 _TokenPair(this.kind, this.oldToken, this.newToken); 2152 _TokenPair(this.kind, this.oldToken, this.newToken);
2150 } 2153 }
OLDNEW
« no previous file with comments | « packages/analyzer/lib/src/generated/engine.dart ('k') | packages/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698