OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.source_mirrors.analyze; | 5 library dart2js.source_mirrors.analyze; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'source_mirrors.dart'; | 9 import 'source_mirrors.dart'; |
10 import 'dart2js_mirrors.dart' show Dart2JsMirrorSystem; | 10 import 'dart2js_mirrors.dart' show Dart2JsMirrorSystem; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const {}); | 57 const {}); |
58 compiler.librariesToAnalyzeWhenRun = libraries; | 58 compiler.librariesToAnalyzeWhenRun = libraries; |
59 return compiler.run(null).then((bool success) { | 59 return compiler.run(null).then((bool success) { |
60 if (success && !compilationFailed) { | 60 if (success && !compilationFailed) { |
61 return new Dart2JsMirrorSystem(compiler); | 61 return new Dart2JsMirrorSystem(compiler); |
62 } else { | 62 } else { |
63 throw new StateError('Failed to create mirror system.'); | 63 throw new StateError('Failed to create mirror system.'); |
64 } | 64 } |
65 }); | 65 }); |
66 } | 66 } |
OLD | NEW |