mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:58:29 +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 totalMigratedFiles = 0;
|
||||
var totalMigratedLines = 0;
|
||||
var languageDirs = 0;
|
||||
var migratedLanguageDirs = 0;
|
||||
|
||||
var skipCompleteSubfolders = arguments.contains("--incomplete");
|
||||
|
||||
|
@ -68,12 +70,21 @@ void main(List<String> arguments) {
|
|||
totalLines += lines;
|
||||
totalMigratedFiles += migratedFiles;
|
||||
totalMigratedLines += migratedLines;
|
||||
|
||||
if (dir.startsWith("language_2/")) {
|
||||
languageDirs++;
|
||||
if (migratedLines == lines) {
|
||||
migratedLanguageDirs++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print("");
|
||||
_show(
|
||||
"total", totalMigratedFiles, totalFiles, totalMigratedLines, totalLines);
|
||||
print("");
|
||||
print("Finished $migratedLanguageDirs/$languageDirs language directories.");
|
||||
}
|
||||
|
||||
void _show(
|
||||
|
|
Loading…
Reference in a new issue