Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(929)

Side by Side Diff: pkg/barback/lib/src/transform_node.dart

Issue 35543006: Fix type errors detected with --error-on-bad-type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698