| 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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 | 1583 |
| 1584 /** | 1584 /** |
| 1585 * A list containing the source containers specifying additional sources that | 1585 * A list containing the source containers specifying additional sources that |
| 1586 * have been removed. | 1586 * have been removed. |
| 1587 */ | 1587 */ |
| 1588 final List<SourceContainer> removedContainers = new List<SourceContainer>(); | 1588 final List<SourceContainer> removedContainers = new List<SourceContainer>(); |
| 1589 | 1589 |
| 1590 /** | 1590 /** |
| 1591 * A list containing the sources that have been deleted. | 1591 * A list containing the sources that have been deleted. |
| 1592 */ | 1592 */ |
| 1593 @deprecated |
| 1593 final List<Source> deletedSources = new List<Source>(); | 1594 final List<Source> deletedSources = new List<Source>(); |
| 1594 | 1595 |
| 1595 /** | 1596 /** |
| 1596 * Return a table mapping the sources whose content has been changed to the | 1597 * Return a table mapping the sources whose content has been changed to the |
| 1597 * current content of those sources. | 1598 * current content of those sources. |
| 1598 */ | 1599 */ |
| 1599 Map<Source, String> get changedContents => _changedContent; | 1600 Map<Source, String> get changedContents => _changedContent; |
| 1600 | 1601 |
| 1601 /** | 1602 /** |
| 1602 * Return `true` if this change set does not contain any changes. | 1603 * Return `true` if this change set does not contain any changes. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 * overridden). To cancel (or change) the override, use [changedContent] | 1646 * overridden). To cancel (or change) the override, use [changedContent] |
| 1646 * instead. | 1647 * instead. |
| 1647 */ | 1648 */ |
| 1648 void changedSource(Source source) { | 1649 void changedSource(Source source) { |
| 1649 changedSources.add(source); | 1650 changedSources.add(source); |
| 1650 } | 1651 } |
| 1651 | 1652 |
| 1652 /** | 1653 /** |
| 1653 * Record that the specified [source] has been deleted. | 1654 * Record that the specified [source] has been deleted. |
| 1654 */ | 1655 */ |
| 1656 @deprecated |
| 1655 void deletedSource(Source source) { | 1657 void deletedSource(Source source) { |
| 1656 deletedSources.add(source); | 1658 deletedSources.add(source); |
| 1657 } | 1659 } |
| 1658 | 1660 |
| 1659 /** | 1661 /** |
| 1660 * Record that the specified source [container] has been removed. | 1662 * Record that the specified source [container] has been removed. |
| 1661 */ | 1663 */ |
| 1662 void removedContainer(SourceContainer container) { | 1664 void removedContainer(SourceContainer container) { |
| 1663 if (container != null) { | 1665 if (container != null) { |
| 1664 removedContainers.add(container); | 1666 removedContainers.add(container); |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2430 * The data that was created from the source. | 2432 * The data that was created from the source. |
| 2431 */ | 2433 */ |
| 2432 final E data; | 2434 final E data; |
| 2433 | 2435 |
| 2434 /** | 2436 /** |
| 2435 * Initialize a newly created holder to associate the given [data] with the | 2437 * Initialize a newly created holder to associate the given [data] with the |
| 2436 * given [modificationTime]. | 2438 * given [modificationTime]. |
| 2437 */ | 2439 */ |
| 2438 TimestampedData(this.modificationTime, this.data); | 2440 TimestampedData(this.modificationTime, this.data); |
| 2439 } | 2441 } |
| OLD | NEW |