Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1371)

Unified Diff: lib/info.dart

Issue 1535893002: Change the deferred library check tool to allow unspecified packages to be in (Closed) Base URL: git@github.com:dart-lang/dart2js_info.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/info.dart
diff --git a/lib/info.dart b/lib/info.dart
index 0ca08cab01e621246647105ea979df5be824708b..f2582755a3ce884c2b331a5c4eaf39ebdc3f8411 100644
--- a/lib/info.dart
+++ b/lib/info.dart
@@ -52,7 +52,7 @@ abstract class BasicInfo implements Info {
int size;
Info parent;
- String get serializedId => '${_kindToString(kind)}/$id';
+ String get serializedId => '${kindToString(kind)}/$id';
String name;
@@ -419,7 +419,7 @@ enum InfoKind {
typedef,
}
-String _kindToString(InfoKind kind) {
+String kindToString(InfoKind kind) {
switch (kind) {
case InfoKind.library:
return 'library';
@@ -444,9 +444,9 @@ int _idFromSerializedId(String serializedId) =>
int.parse(serializedId.substring(serializedId.indexOf('/') + 1));
InfoKind _kindFromSerializedId(String serializedId) =>
- _kindFromString(serializedId.substring(0, serializedId.indexOf('/')));
+ kindFromString(serializedId.substring(0, serializedId.indexOf('/')));
-InfoKind _kindFromString(String kind) {
+InfoKind kindFromString(String kind) {
switch (kind) {
case 'library':
return InfoKind.library;

Powered by Google App Engine
This is Rietveld 408576698