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 pub.dart2js_transformer; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:convert'; | 6 import 'dart:convert'; |
9 | 7 |
10 import 'package:analyzer/analyzer.dart'; | 8 import 'package:analyzer/analyzer.dart'; |
11 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
12 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
13 import 'package:pool/pool.dart'; | 11 import 'package:pool/pool.dart'; |
14 | 12 |
15 import 'package:compiler_unsupported/compiler.dart' as compiler; | 13 import 'package:compiler_unsupported/compiler.dart' as compiler; |
16 import 'package:compiler_unsupported/src/dart2js.dart' | 14 import 'package:compiler_unsupported/src/dart2js.dart' |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 } | 409 } |
412 } | 410 } |
413 | 411 |
414 /// An [EventSink] that discards all data. Provided to dart2js when we don't | 412 /// An [EventSink] that discards all data. Provided to dart2js when we don't |
415 /// want an actual output. | 413 /// want an actual output. |
416 class NullSink<T> implements EventSink<T> { | 414 class NullSink<T> implements EventSink<T> { |
417 void add(T event) {} | 415 void add(T event) {} |
418 void addError(errorEvent, [StackTrace stackTrace]) {} | 416 void addError(errorEvent, [StackTrace stackTrace]) {} |
419 void close() {} | 417 void close() {} |
420 } | 418 } |
OLD | NEW |