Skip to content

Commit aa5cee5

Browse files
authored
Add resetIds (#56)
1 parent 457ae22 commit aa5cee5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.15
2+
3+
* Add `BasicInfo.resetIds` to free internal cache used for id uniqueness.
4+
15
## 0.5.14
26
* Updates `coverage_log_server.dart` and `live_code_size_analysis.dart` to make
37
them strong clean and match the latest changes in dart2js.

lib/info.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ abstract class Info {
5454
// - inputSize: bytes used in the Dart source program
5555
abstract class BasicInfo implements Info {
5656
static final Set<int> _ids = new Set<int>();
57+
58+
/// Frees internal cache used for id uniqueness.
59+
static void resetIds() => BasicInfo._ids.clear();
60+
5761
final InfoKind kind;
5862

5963
int _id;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart2js_info
2-
version: 0.5.14
2+
version: 0.5.15
33

44
description: >
55
Libraries and tools to process data produced when running dart2js with

0 commit comments

Comments
 (0)