| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library barback.transform_node; | 5 library barback.transform_node; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:source_maps/span.dart' show Span; |
| 8 | 9 |
| 9 import 'asset.dart'; | 10 import 'asset.dart'; |
| 10 import 'asset_id.dart'; | 11 import 'asset_id.dart'; |
| 11 import 'asset_node.dart'; | 12 import 'asset_node.dart'; |
| 12 import 'asset_set.dart'; | 13 import 'asset_set.dart'; |
| 13 import 'barback_logger.dart'; | 14 import 'barback_logger.dart'; |
| 14 import 'errors.dart'; | 15 import 'errors.dart'; |
| 15 import 'phase.dart'; | 16 import 'phase.dart'; |
| 16 import 'transform.dart'; | 17 import 'transform.dart'; |
| 17 import 'transformer.dart'; | 18 import 'transformer.dart'; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 212 } |
| 212 | 213 |
| 213 void _log(AssetId asset, LogLevel level, String message, Span span) { | 214 void _log(AssetId asset, LogLevel level, String message, Span span) { |
| 214 // If the log isn't already associated with an asset, use the primary. | 215 // If the log isn't already associated with an asset, use the primary. |
| 215 if (asset == null) asset = primary.id; | 216 if (asset == null) asset = primary.id; |
| 216 var info = new TransformInfo(transformer, primary.id); | 217 var info = new TransformInfo(transformer, primary.id); |
| 217 var entry = new LogEntry(info, asset, level, message, span); | 218 var entry = new LogEntry(info, asset, level, message, span); |
| 218 _onLogController.add(entry); | 219 _onLogController.add(entry); |
| 219 } | 220 } |
| 220 } | 221 } |
| OLD | NEW |