| 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 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
| 6 import 'memory_source_file_helper.dart'; | 6 import 'memory_source_file_helper.dart'; |
| 7 | 7 |
| 8 import '../../../sdk/lib/_internal/compiler/compiler.dart' | 8 import '../../../sdk/lib/_internal/compiler/compiler.dart' |
| 9 show Diagnostic; | 9 show Diagnostic; |
| 10 | 10 |
| 11 import 'dart:json'; | 11 import 'dart:json'; |
| 12 | 12 |
| 13 main() { | 13 main() { |
| 14 Uri script = currentDirectory.resolve(nativeToUriPath(new Options().script)); | 14 Uri script = currentDirectory.resolve(nativeToUriPath(Platform.script)); |
| 15 Uri libraryRoot = script.resolve('../../../sdk/'); | 15 Uri libraryRoot = script.resolve('../../../sdk/'); |
| 16 Uri packageRoot = script.resolve('./packages/'); | 16 Uri packageRoot = script.resolve('./packages/'); |
| 17 | 17 |
| 18 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES; | 18 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES; |
| 19 var provider = new MemorySourceFileProvider(); | 19 var provider = new MemorySourceFileProvider(); |
| 20 var diagnostics = []; | 20 var diagnostics = []; |
| 21 void diagnosticHandler(Uri uri, int begin, int end, | 21 void diagnosticHandler(Uri uri, int begin, int end, |
| 22 String message, Diagnostic kind) { | 22 String message, Diagnostic kind) { |
| 23 if (kind == Diagnostic.VERBOSE_INFO) { | 23 if (kind == Diagnostic.VERBOSE_INFO) { |
| 24 return; | 24 return; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 hest() {} | 78 hest() {} |
| 79 """, | 79 """, |
| 80 'exporter.dart': """ | 80 'exporter.dart': """ |
| 81 library exporter; | 81 library exporter; |
| 82 | 82 |
| 83 export 'library.dart'; | 83 export 'library.dart'; |
| 84 | 84 |
| 85 hest() {} | 85 hest() {} |
| 86 """, | 86 """, |
| 87 }; | 87 }; |
| OLD | NEW |