| 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/summary/format.dart'; | 5 import 'package:analyzer/src/summary/format.dart'; |
| 6 import 'package:analyzer/src/summary/idl.dart'; |
| 6 import 'package:analyzer/src/summary/name_filter.dart'; | 7 import 'package:analyzer/src/summary/name_filter.dart'; |
| 7 | 8 |
| 8 /** | 9 /** |
| 9 * Create a [LinkedLibraryBuilder] corresponding to the given | 10 * Create a [LinkedLibraryBuilder] corresponding to the given |
| 10 * [definingUnit], which should be the defining compilation unit for a library. | 11 * [definingUnit], which should be the defining compilation unit for a library. |
| 11 * Compilation units referenced by the defining compilation unit via `part` | 12 * Compilation units referenced by the defining compilation unit via `part` |
| 12 * declarations will be retrieved using [getPart]. Public namespaces for | 13 * declarations will be retrieved using [getPart]. Public namespaces for |
| 13 * libraries referenced by the defining compilation unit via `import` | 14 * libraries referenced by the defining compilation unit via `import` |
| 14 * declarations (and files reachable from them via `part` and `export` | 15 * declarations (and files reachable from them via `part` and `export` |
| 15 * declarations) will be retrieved using [getImport]. | 16 * declarations) will be retrieved using [getImport]. |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 * [sourceUri] is also relative. | 500 * [sourceUri] is also relative. |
| 500 */ | 501 */ |
| 501 String resolveUri(String sourceUri, String relativeUri) { | 502 String resolveUri(String sourceUri, String relativeUri) { |
| 502 if (sourceUri == null) { | 503 if (sourceUri == null) { |
| 503 return relativeUri; | 504 return relativeUri; |
| 504 } else { | 505 } else { |
| 505 return Uri.parse(sourceUri).resolve(relativeUri).toString(); | 506 return Uri.parse(sourceUri).resolve(relativeUri).toString(); |
| 506 } | 507 } |
| 507 } | 508 } |
| 508 } | 509 } |
| OLD | NEW |