| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 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 /// Holds a couple utility functions used at various places in the system. | 5 /// Holds a couple utility functions used at various places in the system. |
| 6 library ddc.src.utils; | 6 library dev_compiler.src.utils; |
| 7 | 7 |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
| 11 import 'package:analyzer/src/generated/ast.dart' | 11 import 'package:analyzer/src/generated/ast.dart' |
| 12 show | 12 show |
| 13 ImportDirective, | 13 ImportDirective, |
| 14 ExportDirective, | 14 ExportDirective, |
| 15 PartDirective, | 15 PartDirective, |
| 16 CompilationUnit, | 16 CompilationUnit, |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void dec([int n = 2]) { | 225 void dec([int n = 2]) { |
| 226 _indent = _indent - n; | 226 _indent = _indent - n; |
| 227 assert(_indent >= 0); | 227 assert(_indent >= 0); |
| 228 _prefix = "".padRight(_indent); | 228 _prefix = "".padRight(_indent); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void close() { | 231 void close() { |
| 232 new File(_path).writeAsStringSync('$_sb'); | 232 new File(_path).writeAsStringSync('$_sb'); |
| 233 } | 233 } |
| 234 } | 234 } |
| OLD | NEW |