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 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 | 7 |
8 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 8 import 'package:compiler/src/mirrors/source_mirrors.dart'; |
9 import 'package:compiler/src/mirrors/analyze.dart' as source_mirrors; | 9 import 'package:compiler/src/mirrors/analyze.dart' as source_mirrors; |
10 import 'package:compiler/src/source_file_provider.dart'; | 10 import 'package:compiler/src/source_file_provider.dart'; |
(...skipping 17 matching lines...) Expand all Loading... |
28 new Uri.file('${Platform.packageRoot}/')); | 28 new Uri.file('${Platform.packageRoot}/')); |
29 var provider = new CompilerSourceFileProvider(); | 29 var provider = new CompilerSourceFileProvider(); |
30 var handler = new FormattingDiagnosticHandler(provider); | 30 var handler = new FormattingDiagnosticHandler(provider); |
31 return source_mirrors.analyze( | 31 return source_mirrors.analyze( |
32 [testUri], | 32 [testUri], |
33 libraryRoot, | 33 libraryRoot, |
34 packageRoot, | 34 packageRoot, |
35 provider, | 35 provider, |
36 handler); | 36 handler); |
37 } | 37 } |
OLD | NEW |