Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'batch_util.dart'; | 9 import '../bin/batch_util.dart'; |
|
Siggi Cherem (dart-lang)
2017/04/24 23:20:37
I only moved dartk to fix the package-dependency i
| |
| 10 import 'util.dart'; | 10 import '../bin/util.dart'; |
| 11 | 11 |
| 12 import 'package:args/args.dart'; | 12 import 'package:args/args.dart'; |
| 13 import 'package:analyzer/src/kernel/loader.dart'; | 13 import 'package:analyzer/src/kernel/loader.dart'; |
| 14 import 'package:kernel/application_root.dart'; | 14 import 'package:kernel/application_root.dart'; |
| 15 import 'package:kernel/verifier.dart'; | 15 import 'package:kernel/verifier.dart'; |
| 16 import 'package:kernel/kernel.dart'; | 16 import 'package:kernel/kernel.dart'; |
| 17 import 'package:kernel/log.dart'; | 17 import 'package:kernel/log.dart'; |
| 18 import 'package:kernel/target/targets.dart'; | 18 import 'package:kernel/target/targets.dart'; |
| 19 import 'package:kernel/transformations/treeshaker.dart'; | 19 import 'package:kernel/transformations/treeshaker.dart'; |
| 20 import 'package:path/path.dart' as path; | 20 import 'package:path/path.dart' as path; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 445 int flushTime = watch.elapsedMilliseconds - time; | 445 int flushTime = watch.elapsedMilliseconds - time; |
| 446 print('writer.flush_time = $flushTime ms'); | 446 print('writer.flush_time = $flushTime ms'); |
| 447 } | 447 } |
| 448 | 448 |
| 449 if (options['tolerant']) { | 449 if (options['tolerant']) { |
| 450 return CompilerOutcome.Ok; | 450 return CompilerOutcome.Ok; |
| 451 } | 451 } |
| 452 | 452 |
| 453 return errors.length > 0 ? CompilerOutcome.Fail : CompilerOutcome.Ok; | 453 return errors.length > 0 ? CompilerOutcome.Fail : CompilerOutcome.Ok; |
| 454 } | 454 } |
| OLD | NEW |