| 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/name_filter.dart'; | 6 import 'package:analyzer/src/summary/name_filter.dart'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Create a [LinkedLibraryBuilder] corresponding to the given | 9 * Create a [LinkedLibraryBuilder] corresponding to the given |
| 10 * [definingUnit], which should be the defining compilation unit for a library. | 10 * [definingUnit], which should be the defining compilation unit for a library. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * Cache of values returned by [getPart]. | 120 * Cache of values returned by [getPart]. |
| 121 */ | 121 */ |
| 122 final Map<String, UnlinkedUnit> partCache = <String, UnlinkedUnit>{}; | 122 final Map<String, UnlinkedUnit> partCache = <String, UnlinkedUnit>{}; |
| 123 | 123 |
| 124 /** | 124 /** |
| 125 * Names defined inside the library being prelinked. | 125 * Names defined inside the library being prelinked. |
| 126 */ | 126 */ |
| 127 final Map<String, _Meaning> privateNamespace = <String, _Meaning>{ | 127 final Map<String, _Meaning> privateNamespace = <String, _Meaning>{ |
| 128 'dynamic': new _Meaning(0, ReferenceKind.classOrEnum, 0, 0) | 128 'dynamic': new _Meaning(0, ReferenceKind.classOrEnum, 0, 0), |
| 129 'void': new _Meaning(0, ReferenceKind.classOrEnum, 0, 0) |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 /** | 132 /** |
| 132 * List of dependencies of the library being prelinked. This will be output | 133 * List of dependencies of the library being prelinked. This will be output |
| 133 * to [LinkedLibrary.dependencies]. | 134 * to [LinkedLibrary.dependencies]. |
| 134 */ | 135 */ |
| 135 final List<LinkedDependencyBuilder> dependencies = <LinkedDependencyBuilder>[ | 136 final List<LinkedDependencyBuilder> dependencies = <LinkedDependencyBuilder>[ |
| 136 new LinkedDependencyBuilder() | 137 new LinkedDependencyBuilder() |
| 137 ]; | 138 ]; |
| 138 | 139 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 * [sourceUri] is also relative. | 445 * [sourceUri] is also relative. |
| 445 */ | 446 */ |
| 446 String resolveUri(String sourceUri, String relativeUri) { | 447 String resolveUri(String sourceUri, String relativeUri) { |
| 447 if (sourceUri == null) { | 448 if (sourceUri == null) { |
| 448 return relativeUri; | 449 return relativeUri; |
| 449 } else { | 450 } else { |
| 450 return Uri.parse(sourceUri).resolve(relativeUri).toString(); | 451 return Uri.parse(sourceUri).resolve(relativeUri).toString(); |
| 451 } | 452 } |
| 452 } | 453 } |
| 453 } | 454 } |
| OLD | NEW |