| 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/idl.dart'; |
| 7 import 'package:analyzer/src/summary/name_filter.dart'; | 7 import 'package:analyzer/src/summary/name_filter.dart'; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Create a [LinkedLibraryBuilder] corresponding to the given | 10 * Create a [LinkedLibraryBuilder] corresponding to the given |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 UnlinkedPublicNamespace importedNamespace = getImportCached(unitUri); | 189 UnlinkedPublicNamespace importedNamespace = getImportCached(unitUri); |
| 190 if (importedNamespace == null) { | 190 if (importedNamespace == null) { |
| 191 continue; | 191 continue; |
| 192 } | 192 } |
| 193 for (UnlinkedPublicName name in importedNamespace.names) { | 193 for (UnlinkedPublicName name in importedNamespace.names) { |
| 194 aggregated.putIfAbsent(name.name, () { | 194 aggregated.putIfAbsent(name.name, () { |
| 195 if (name.kind == ReferenceKind.classOrEnum) { | 195 if (name.kind == ReferenceKind.classOrEnum) { |
| 196 Map<String, _Meaning> namespace = <String, _Meaning>{}; | 196 Map<String, _Meaning> namespace = <String, _Meaning>{}; |
| 197 name.constMembers.forEach((executable) { | 197 name.constMembers.forEach((executable) { |
| 198 namespace[executable.name] = new _Meaning(unitNum, | 198 namespace[executable.name] = new _Meaning(unitNum, |
| 199 executable.kind, dependency, executable.numTypeParameters); | 199 executable.kind, 0, executable.numTypeParameters); |
| 200 }); | 200 }); |
| 201 return new _ClassMeaning( | 201 return new _ClassMeaning( |
| 202 unitNum, dependency, name.numTypeParameters, namespace); | 202 unitNum, dependency, name.numTypeParameters, namespace); |
| 203 } | 203 } |
| 204 return new _Meaning( | 204 return new _Meaning( |
| 205 unitNum, name.kind, dependency, name.numTypeParameters); | 205 unitNum, name.kind, dependency, name.numTypeParameters); |
| 206 }); | 206 }); |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 * [sourceUri] is also relative. | 500 * [sourceUri] is also relative. |
| 501 */ | 501 */ |
| 502 String resolveUri(String sourceUri, String relativeUri) { | 502 String resolveUri(String sourceUri, String relativeUri) { |
| 503 if (sourceUri == null) { | 503 if (sourceUri == null) { |
| 504 return relativeUri; | 504 return relativeUri; |
| 505 } else { | 505 } else { |
| 506 return Uri.parse(sourceUri).resolve(relativeUri).toString(); | 506 return Uri.parse(sourceUri).resolve(relativeUri).toString(); |
| 507 } | 507 } |
| 508 } | 508 } |
| 509 } | 509 } |
| OLD | NEW |