| 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/utilities_dart.dart'; | 5 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 6 import 'package:analyzer/src/summary/format.dart'; | 6 import 'package:analyzer/src/summary/format.dart'; |
| 7 import 'package:analyzer/src/summary/idl.dart'; | 7 import 'package:analyzer/src/summary/idl.dart'; |
| 8 import 'package:analyzer/src/summary/name_filter.dart'; | 8 import 'package:analyzer/src/summary/name_filter.dart'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 267 } |
| 268 }); | 268 }); |
| 269 cls.executables.forEach((executable) { | 269 cls.executables.forEach((executable) { |
| 270 ReferenceKind kind = null; | 270 ReferenceKind kind = null; |
| 271 if (executable.kind == UnlinkedExecutableKind.constructor) { | 271 if (executable.kind == UnlinkedExecutableKind.constructor) { |
| 272 kind = ReferenceKind.constructor; | 272 kind = ReferenceKind.constructor; |
| 273 } else if (executable.kind == | 273 } else if (executable.kind == |
| 274 UnlinkedExecutableKind.functionOrMethod && | 274 UnlinkedExecutableKind.functionOrMethod && |
| 275 executable.isStatic) { | 275 executable.isStatic) { |
| 276 kind = ReferenceKind.method; | 276 kind = ReferenceKind.method; |
| 277 } else if (executable.kind == UnlinkedExecutableKind.getter && |
| 278 executable.isStatic) { |
| 279 kind = ReferenceKind.propertyAccessor; |
| 277 } | 280 } |
| 278 if (kind != null && executable.name.isNotEmpty) { | 281 if (kind != null && executable.name.isNotEmpty) { |
| 279 namespace[executable.name] = new _Meaning( | 282 namespace[executable.name] = new _Meaning( |
| 280 unitNum, kind, 0, executable.typeParameters.length); | 283 unitNum, kind, 0, executable.typeParameters.length); |
| 281 } | 284 } |
| 282 }); | 285 }); |
| 283 return new _ClassMeaning( | 286 return new _ClassMeaning( |
| 284 unitNum, 0, cls.typeParameters.length, namespace); | 287 unitNum, 0, cls.typeParameters.length, namespace); |
| 285 }); | 288 }); |
| 286 } | 289 } |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 */ | 505 */ |
| 503 String resolveUri(String sourceUri, String relativeUri) { | 506 String resolveUri(String sourceUri, String relativeUri) { |
| 504 if (sourceUri == null) { | 507 if (sourceUri == null) { |
| 505 return relativeUri; | 508 return relativeUri; |
| 506 } else { | 509 } else { |
| 507 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri)) | 510 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri)) |
| 508 .toString(); | 511 .toString(); |
| 509 } | 512 } |
| 510 } | 513 } |
| 511 } | 514 } |
| OLD | NEW |