| Index: tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
|
| index 1bbb6dd1e3b448a32c67dc6704c622f72bc5e15b..c45a6b508cb81e3426808a8160d93401fcacc288 100644
|
| --- a/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -135,6 +135,14 @@ class MockCompiler extends Compiler {
|
| }
|
|
|
| /**
|
| + * Registers the [source] with [uri] making it possible load [source] as a
|
| + * library.
|
| + */
|
| + void registerSource(Uri uri, String source) {
|
| + sourceFiles[uri.toString()] = new MockFile(source);
|
| + }
|
| +
|
| + /**
|
| * Used internally to create a library from a source text. The created library
|
| * is fixed to export its top-level declarations.
|
| */
|
|
|