OLD | NEW |
---|---|
(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 } | |
OLD | NEW |