| 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 dart2js.test.memory_source_file_helper; | 5 library dart2js.test.memory_source_file_helper; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 export 'dart:io' show Platform; | 8 export 'dart:io' show Platform; |
| 9 | 9 |
| 10 export 'package:compiler/src/apiimpl.dart' | 10 export 'package:compiler/src/apiimpl.dart' |
| 11 show Compiler; | 11 show CompilerImpl; |
| 12 | 12 |
| 13 export 'package:compiler/src/filenames.dart' | 13 export 'package:compiler/src/filenames.dart' |
| 14 show currentDirectory; | 14 show currentDirectory; |
| 15 | 15 |
| 16 import 'package:compiler/src/io/source_file.dart' | 16 import 'package:compiler/src/io/source_file.dart' |
| 17 show StringSourceFile, SourceFile; | 17 show StringSourceFile, SourceFile; |
| 18 | 18 |
| 19 import 'package:compiler/src/source_file_provider.dart' | 19 import 'package:compiler/src/source_file_provider.dart' |
| 20 show SourceFileProvider; | 20 show SourceFileProvider; |
| 21 | 21 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 String source = memorySourceFiles[resourceUri.path]; | 49 String source = memorySourceFiles[resourceUri.path]; |
| 50 if (source == null) { | 50 if (source == null) { |
| 51 throw new Exception('No such file $resourceUri'); | 51 throw new Exception('No such file $resourceUri'); |
| 52 } | 52 } |
| 53 return new StringSourceFile.fromUri(resourceUri, source); | 53 return new StringSourceFile.fromUri(resourceUri, source); |
| 54 } | 54 } |
| 55 | 55 |
| 56 @override | 56 @override |
| 57 Future readFromUri(Uri resourceUri) => readStringFromUri(resourceUri); | 57 Future readFromUri(Uri resourceUri) => readStringFromUri(resourceUri); |
| 58 } | 58 } |
| OLD | NEW |