mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:21:07 +00:00
Print a count of how many language subdirectories have been migrated.
Change-Id: Id38ff08fd069db6f636a098d0d2d0351c10a8115 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149788 Auto-Submit: Bob Nystrom <rnystrom@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
7112027a9d
commit
9eef0a1ea9
|
@ -29,6 +29,8 @@ void main(List<String> arguments) {
|
||||||
var totalLines = 0;
|
var totalLines = 0;
|
||||||
var totalMigratedFiles = 0;
|
var totalMigratedFiles = 0;
|
||||||
var totalMigratedLines = 0;
|
var totalMigratedLines = 0;
|
||||||
|
var languageDirs = 0;
|
||||||
|
var migratedLanguageDirs = 0;
|
||||||
|
|
||||||
var skipCompleteSubfolders = arguments.contains("--incomplete");
|
var skipCompleteSubfolders = arguments.contains("--incomplete");
|
||||||
|
|
||||||
|
@ -68,12 +70,21 @@ void main(List<String> arguments) {
|
||||||
totalLines += lines;
|
totalLines += lines;
|
||||||
totalMigratedFiles += migratedFiles;
|
totalMigratedFiles += migratedFiles;
|
||||||
totalMigratedLines += migratedLines;
|
totalMigratedLines += migratedLines;
|
||||||
|
|
||||||
|
if (dir.startsWith("language_2/")) {
|
||||||
|
languageDirs++;
|
||||||
|
if (migratedLines == lines) {
|
||||||
|
migratedLanguageDirs++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print("");
|
print("");
|
||||||
_show(
|
_show(
|
||||||
"total", totalMigratedFiles, totalFiles, totalMigratedLines, totalLines);
|
"total", totalMigratedFiles, totalFiles, totalMigratedLines, totalLines);
|
||||||
|
print("");
|
||||||
|
print("Finished $migratedLanguageDirs/$languageDirs language directories.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void _show(
|
void _show(
|
||||||
|
|
Loading…
Reference in a new issue