OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.test.generated.source_factory; | 5 library analyzer.test.generated.test.generated.source_factory; |
6 | 6 |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 | 8 |
9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
11 import 'package:analyzer/source/package_map_resolver.dart'; | 11 import 'package:analyzer/source/package_map_resolver.dart'; |
12 import 'package:analyzer/src/generated/java_core.dart'; | 12 import 'package:analyzer/src/generated/java_core.dart'; |
13 import 'package:analyzer/src/generated/java_engine_io.dart'; | 13 import 'package:analyzer/src/generated/java_engine_io.dart'; |
14 import 'package:analyzer/src/generated/java_io.dart'; | 14 import 'package:analyzer/src/generated/java_io.dart'; |
15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 UriResolver_SourceFactoryTest_test_fromEncoding_valid(this.encoding); | 343 UriResolver_SourceFactoryTest_test_fromEncoding_valid(this.encoding); |
344 | 344 |
345 @override | 345 @override |
346 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 346 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
347 if (uri.toString() == encoding) { | 347 if (uri.toString() == encoding) { |
348 return new TestSource(); | 348 return new TestSource(); |
349 } | 349 } |
350 return null; | 350 return null; |
351 } | 351 } |
352 } | 352 } |
OLD | NEW |