| 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 library analyzer.src.generated.engine; | 5 library analyzer.src.generated.engine; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 * Apply the given [delta] to change the level of analysis that will be | 220 * Apply the given [delta] to change the level of analysis that will be |
| 221 * performed for the sources known to this context. | 221 * performed for the sources known to this context. |
| 222 */ | 222 */ |
| 223 void applyAnalysisDelta(AnalysisDelta delta); | 223 void applyAnalysisDelta(AnalysisDelta delta); |
| 224 | 224 |
| 225 /** | 225 /** |
| 226 * Apply the changes specified by the given [changeSet] to this context. Any | 226 * Apply the changes specified by the given [changeSet] to this context. Any |
| 227 * analysis results that have been invalidated by these changes will be | 227 * analysis results that have been invalidated by these changes will be |
| 228 * removed. | 228 * removed. |
| 229 */ | 229 */ |
| 230 ApplyChangesStatus applyChanges(ChangeSet changeSet); | 230 void applyChanges(ChangeSet changeSet); |
| 231 | 231 |
| 232 /** | 232 /** |
| 233 * Return the documentation comment for the given [element] as it appears in | 233 * Return the documentation comment for the given [element] as it appears in |
| 234 * the original source (complete with the beginning and ending delimiters) for | 234 * the original source (complete with the beginning and ending delimiters) for |
| 235 * block documentation comments, or lines starting with `"///"` and separated | 235 * block documentation comments, or lines starting with `"///"` and separated |
| 236 * with `"\n"` characters for end-of-line documentation comments, or `null` if | 236 * with `"\n"` characters for end-of-line documentation comments, or `null` if |
| 237 * the element does not have a documentation comment associated with it. This | 237 * the element does not have a documentation comment associated with it. This |
| 238 * can be a long-running operation if the information needed to access the | 238 * can be a long-running operation if the information needed to access the |
| 239 * comment is not cached. | 239 * comment is not cached. |
| 240 * | 240 * |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 List<ChangeNotice> get changeNotices => _notices; | 1506 List<ChangeNotice> get changeNotices => _notices; |
| 1507 | 1507 |
| 1508 /** | 1508 /** |
| 1509 * Return `true` if there is more to be performed after the task that was | 1509 * Return `true` if there is more to be performed after the task that was |
| 1510 * performed. | 1510 * performed. |
| 1511 */ | 1511 */ |
| 1512 bool get hasMoreWork => _notices != null; | 1512 bool get hasMoreWork => _notices != null; |
| 1513 } | 1513 } |
| 1514 | 1514 |
| 1515 /** | 1515 /** |
| 1516 * The result of applying a [ChangeSet] to a [AnalysisContext]. | |
| 1517 */ | |
| 1518 class ApplyChangesStatus { | |
| 1519 /** | |
| 1520 * Is `true` if the given [ChangeSet] caused any changes in the context. | |
| 1521 */ | |
| 1522 final bool hasChanges; | |
| 1523 | |
| 1524 ApplyChangesStatus(this.hasChanges); | |
| 1525 } | |
| 1526 | |
| 1527 /** | |
| 1528 * Statistics about cache consistency validation. | 1516 * Statistics about cache consistency validation. |
| 1529 */ | 1517 */ |
| 1530 class CacheConsistencyValidationStatistics { | 1518 class CacheConsistencyValidationStatistics { |
| 1531 /** | 1519 /** |
| 1532 * Number of sources which were changed, but the context was not notified | 1520 * Number of sources which were changed, but the context was not notified |
| 1533 * about it, so this fact was detected only during cache consistency | 1521 * about it, so this fact was detected only during cache consistency |
| 1534 * validation. | 1522 * validation. |
| 1535 */ | 1523 */ |
| 1536 int numOfChanged = 0; | 1524 int numOfChanged = 0; |
| 1537 | 1525 |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2711 * The data that was created from the source. | 2699 * The data that was created from the source. |
| 2712 */ | 2700 */ |
| 2713 final E data; | 2701 final E data; |
| 2714 | 2702 |
| 2715 /** | 2703 /** |
| 2716 * Initialize a newly created holder to associate the given [data] with the | 2704 * Initialize a newly created holder to associate the given [data] with the |
| 2717 * given [modificationTime]. | 2705 * given [modificationTime]. |
| 2718 */ | 2706 */ |
| 2719 TimestampedData(this.modificationTime, this.data); | 2707 TimestampedData(this.modificationTime, this.data); |
| 2720 } | 2708 } |
| OLD | NEW |