OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |