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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const {}); | 58 const {}); |
59 compiler.librariesToAnalyzeWhenRun = libraries; | 59 compiler.librariesToAnalyzeWhenRun = libraries; |
60 return compiler.run(null).then((bool success) { | 60 return compiler.run(null).then((bool success) { |
61 if (success && !compilationFailed) { | 61 if (success && !compilationFailed) { |
62 return new Dart2JsMirrorSystem(compiler); | 62 return new Dart2JsMirrorSystem(compiler); |
63 } else { | 63 } else { |
64 throw new StateError('Failed to create mirror system.'); | 64 throw new StateError('Failed to create mirror system.'); |
65 } | 65 } |
66 }); | 66 }); |
67 } | 67 } |
OLD | NEW |