OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
Jennifer Messerly
2013/09/18 06:44:15
2013?
terry
2013/10/09 03:40:33
Changed to 2013. I thought the copyright was the
| |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library css; | 5 library css; |
6 | 6 |
7 import 'dart:async'; | |
8 import 'dart:collection'; | |
9 import 'dart:io'; | 7 import 'dart:io'; |
10 import 'dart:math' as Math; | |
11 | 8 |
12 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
13 import 'package:source_maps/span.dart' show SourceFile; | 10 import 'package:source_maps/span.dart' show SourceFile; |
14 | 11 |
15 import 'parser.dart'; | 12 import 'parser.dart'; |
16 import 'visitor.dart'; | 13 import 'visitor.dart'; |
17 import 'src/messages.dart'; | 14 import 'src/messages.dart'; |
18 import 'src/options.dart'; | 15 import 'src/options.dart'; |
19 | 16 |
20 void main() { | 17 void main() { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 void _printMessage(String message, int duration) { | 72 void _printMessage(String message, int duration) { |
76 var buf = new StringBuffer(); | 73 var buf = new StringBuffer(); |
77 buf.write(message); | 74 buf.write(message); |
78 for (int i = message.length; i < 60; i++) buf.write(' '); | 75 for (int i = message.length; i < 60; i++) buf.write(' '); |
79 buf.write(' -- '); | 76 buf.write(' -- '); |
80 if (duration < 10) buf.write(' '); | 77 if (duration < 10) buf.write(' '); |
81 if (duration < 100) buf.write(' '); | 78 if (duration < 100) buf.write(' '); |
82 buf..write(duration)..write(' ms'); | 79 buf..write(duration)..write(' ms'); |
83 print(buf.toString()); | 80 print(buf.toString()); |
84 } | 81 } |
OLD | NEW |