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

Side by Side Diff: tools/migration/bin/check_for_splits.dart

Issue 2993043002: Split language_2.status into multiple files. (Closed)
Patch Set: Created 3 years, 4 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:status_file/status_file.dart';
6
7 import 'package:migration/src/fork.dart';
8 import 'package:migration/src/io.dart';
9 import 'package:migration/src/log.dart';
10 import 'package:migration/src/migrate_statuses.dart';
11
12 const simpleDirs = const ["corelib", "language", "lib"];
13
14 void main(List<String> arguments) {
bkonyi 2017/08/04 17:49:01 What's the point of this tool here exactly?
Bob Nystrom 2017/08/04 18:31:44 Oops, that was a temp script for me. Didn't mean t
15 for (var path in listFiles("language_2", extension: ".status")) {
16 var file = new StatusFile.read(path);
17 print(path);
18 for (var section in file.sections) {
19 var splits = filesForHeader(section.condition.toString());
20 if (splits.length > 1) {
21 print("${section.lineNumber}: [ ${section.condition} ]");
22 print(" " + splits.join(" "));
23 }
24 }
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698