mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Make CiderCacheEntry public.
Change-Id: Ib32b7af6fc399ac5bc646f06175cb68ef605d73a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153400 Commit-Queue: Keerti Parthasarathy <keertip@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
4726b1b337
commit
a2edb7976c
|
@ -23,8 +23,15 @@ abstract class CiderByteStore {
|
|||
void put(String key, List<int> signature, List<int> bytes);
|
||||
}
|
||||
|
||||
class CiderCacheEntry {
|
||||
final List<int> signature;
|
||||
final List<int> bytes;
|
||||
|
||||
CiderCacheEntry(this.signature, this.bytes);
|
||||
}
|
||||
|
||||
class CiderMemoryByteStore implements CiderByteStore {
|
||||
final Map<String, _CiderCacheEntry> _map = {};
|
||||
final Map<String, CiderCacheEntry> _map = {};
|
||||
|
||||
@override
|
||||
List<int> get(String key, List<int> signature) {
|
||||
|
@ -39,13 +46,6 @@ class CiderMemoryByteStore implements CiderByteStore {
|
|||
|
||||
@override
|
||||
void put(String key, List<int> signature, List<int> bytes) {
|
||||
_map[key] = _CiderCacheEntry(signature, bytes);
|
||||
_map[key] = CiderCacheEntry(signature, bytes);
|
||||
}
|
||||
}
|
||||
|
||||
class _CiderCacheEntry {
|
||||
final List<int> signature;
|
||||
final List<int> bytes;
|
||||
|
||||
_CiderCacheEntry(this.signature, this.bytes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue