| 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; | 5 library pub.dart2js_transformer; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:analyzer/analyzer.dart'; | 10 import 'package:analyzer/analyzer.dart'; |
| 11 import 'package:barback/barback.dart'; | 11 import 'package:barback/barback.dart'; |
| 12 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
| 13 import 'package:pool/pool.dart'; |
| 13 import 'package:stack_trace/stack_trace.dart'; | 14 import 'package:stack_trace/stack_trace.dart'; |
| 14 | 15 |
| 15 import '../../../../compiler/compiler.dart' as compiler; | 16 import '../../../../compiler/compiler.dart' as compiler; |
| 16 import '../../../../compiler/implementation/dart2js.dart' | 17 import '../../../../compiler/implementation/dart2js.dart' |
| 17 show AbortLeg; | 18 show AbortLeg; |
| 18 import '../../../../compiler/implementation/source_file.dart'; | 19 import '../../../../compiler/implementation/source_file.dart'; |
| 19 import '../barback.dart'; | 20 import '../barback.dart'; |
| 20 import '../dart.dart' as dart; | 21 import '../dart.dart' as dart; |
| 21 import '../pool.dart'; | |
| 22 import '../utils.dart'; | 22 import '../utils.dart'; |
| 23 import 'asset_environment.dart'; | 23 import 'asset_environment.dart'; |
| 24 | 24 |
| 25 /// The set of all valid configuration options for this transformer. | 25 /// The set of all valid configuration options for this transformer. |
| 26 final _validOptions = new Set<String>.from([ | 26 final _validOptions = new Set<String>.from([ |
| 27 'commandLineOptions', 'checked', 'csp', 'minify', 'verbose', 'environment', | 27 'commandLineOptions', 'checked', 'csp', 'minify', 'verbose', 'environment', |
| 28 'analyzeAll', 'suppressWarnings', 'suppressHints', 'suppressPackageWarnings', | 28 'analyzeAll', 'suppressWarnings', 'suppressHints', 'suppressPackageWarnings', |
| 29 'terse' | 29 'terse' |
| 30 ]); | 30 ]); |
| 31 | 31 |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 405 } |
| 406 } | 406 } |
| 407 | 407 |
| 408 /// An [EventSink] that discards all data. Provided to dart2js when we don't | 408 /// An [EventSink] that discards all data. Provided to dart2js when we don't |
| 409 /// want an actual output. | 409 /// want an actual output. |
| 410 class NullSink<T> implements EventSink<T> { | 410 class NullSink<T> implements EventSink<T> { |
| 411 void add(T event) {} | 411 void add(T event) {} |
| 412 void addError(errorEvent, [StackTrace stackTrace]) {} | 412 void addError(errorEvent, [StackTrace stackTrace]) {} |
| 413 void close() {} | 413 void close() {} |
| 414 } | 414 } |
| OLD | NEW |