OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 test.context.directory.manager; | 5 library test.context.directory.manager; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analysis_server/src/context_manager.dart'; | 9 import 'package:analysis_server/src/context_manager.dart'; |
10 import 'package:analyzer/file_system/file_system.dart'; | 10 import 'package:analyzer/file_system/file_system.dart'; |
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 @override | 1557 @override |
1558 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 1558 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
1559 } | 1559 } |
1560 | 1560 |
1561 class TestUriResolver extends UriResolver { | 1561 class TestUriResolver extends UriResolver { |
1562 Map<Uri, Source> uriMap; | 1562 Map<Uri, Source> uriMap; |
1563 | 1563 |
1564 TestUriResolver(this.uriMap); | 1564 TestUriResolver(this.uriMap); |
1565 | 1565 |
1566 @override | 1566 @override |
1567 Source resolveAbsolute(Uri uri) { | 1567 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
1568 return uriMap[uri]; | 1568 return uriMap[uri]; |
1569 } | 1569 } |
1570 } | 1570 } |
OLD | NEW |