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/lib/src/generated/engine.dart

Issue 1236013003: Fixed bug in implicit analysis notification and renamed tests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_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 // 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; 8 library engine;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 4581 matching lines...) Expand 10 before | Expand all | Expand 10 after
4592 dartEntry.setValue(DartEntry.TOKEN_STREAM, task.tokenStream); 4592 dartEntry.setValue(DartEntry.TOKEN_STREAM, task.tokenStream);
4593 dartEntry.setValue(DartEntry.SCAN_ERRORS, task.errors); 4593 dartEntry.setValue(DartEntry.SCAN_ERRORS, task.errors);
4594 _cache.storedAst(source); 4594 _cache.storedAst(source);
4595 ChangeNoticeImpl notice = getNotice(source); 4595 ChangeNoticeImpl notice = getNotice(source);
4596 notice.setErrors(dartEntry.allErrors, lineInfo); 4596 notice.setErrors(dartEntry.allErrors, lineInfo);
4597 return dartEntry; 4597 return dartEntry;
4598 } 4598 }
4599 4599
4600 void _removeFromCache(Source source) { 4600 void _removeFromCache(Source source) {
4601 SourceEntry entry = _cache.remove(source); 4601 SourceEntry entry = _cache.remove(source);
4602 if (entry != null && entry.explicitlyAdded) { 4602 if (entry != null && !entry.explicitlyAdded) {
4603 _implicitAnalysisEventsController 4603 _implicitAnalysisEventsController
4604 .add(new ImplicitAnalysisEvent(source, false)); 4604 .add(new ImplicitAnalysisEvent(source, false));
4605 } 4605 }
4606 } 4606 }
4607 4607
4608 /** 4608 /**
4609 * Remove the given [librarySource] from the list of containing libraries for 4609 * Remove the given [librarySource] from the list of containing libraries for
4610 * all of the parts referenced by the given [dartEntry]. 4610 * all of the parts referenced by the given [dartEntry].
4611 */ 4611 */
4612 void _removeFromParts(Source librarySource, DartEntry dartEntry) { 4612 void _removeFromParts(Source librarySource, DartEntry dartEntry) {
(...skipping 7295 matching lines...) Expand 10 before | Expand all | Expand 10 after
11908 PendingFuture pendingFuture = 11908 PendingFuture pendingFuture =
11909 new PendingFuture<T>(_context, source, computeValue); 11909 new PendingFuture<T>(_context, source, computeValue);
11910 if (!pendingFuture.evaluate(sourceEntry)) { 11910 if (!pendingFuture.evaluate(sourceEntry)) {
11911 _context._pendingFutureSources 11911 _context._pendingFutureSources
11912 .putIfAbsent(source, () => <PendingFuture>[]) 11912 .putIfAbsent(source, () => <PendingFuture>[])
11913 .add(pendingFuture); 11913 .add(pendingFuture);
11914 } 11914 }
11915 return pendingFuture.future; 11915 return pendingFuture.future;
11916 } 11916 }
11917 } 11917 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698