| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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:analyzer/src/generated/java_core.dart'; | |
| 6 import 'package:analyzer/src/generated/java_engine.dart'; | |
| 7 import 'package:analyzer/src/generated/source.dart'; | |
| 8 import 'package:analyzer/src/generated/utilities_dart.dart'; | 5 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 9 import 'package:analyzer/src/summary/format.dart'; | 6 import 'package:analyzer/src/summary/format.dart'; |
| 10 import 'package:analyzer/src/summary/idl.dart'; | 7 import 'package:analyzer/src/summary/idl.dart'; |
| 11 import 'package:analyzer/src/summary/name_filter.dart'; | 8 import 'package:analyzer/src/summary/name_filter.dart'; |
| 12 | 9 |
| 13 /** | 10 /** |
| 14 * Create a [LinkedLibraryBuilder] corresponding to the given | 11 * Create a [LinkedLibraryBuilder] corresponding to the given |
| 15 * [definingUnit], which should be the defining compilation unit for a library. | 12 * [definingUnit], which should be the defining compilation unit for a library. |
| 16 * Compilation units referenced by the defining compilation unit via `part` | 13 * Compilation units referenced by the defining compilation unit via `part` |
| 17 * declarations will be retrieved using [getPart]. Public namespaces for | 14 * declarations will be retrieved using [getPart]. Public namespaces for |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 */ | 506 */ |
| 510 String resolveUri(String sourceUri, String relativeUri) { | 507 String resolveUri(String sourceUri, String relativeUri) { |
| 511 if (sourceUri == null) { | 508 if (sourceUri == null) { |
| 512 return relativeUri; | 509 return relativeUri; |
| 513 } else { | 510 } else { |
| 514 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri)) | 511 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri)) |
| 515 .toString(); | 512 .toString(); |
| 516 } | 513 } |
| 517 } | 514 } |
| 518 } | 515 } |
| OLD | NEW |