Index: utils/apidoc/apidoc.dart |
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart |
index 8a51cbf8eece98f2762e5578d6a7bb4a48d9d28f..931a5fe46da4a9e787c25112a2ec79f4c2b0f2de 100644 |
--- a/utils/apidoc/apidoc.dart |
+++ b/utils/apidoc/apidoc.dart |
@@ -551,7 +551,7 @@ class Apidoc extends doc.Dartdoc { |
* different library than [member]. |
*/ |
String _linkMember(MemberMirror member) { |
- final typeName = member.surroundingDeclaration.simpleName; |
+ final typeName = member.owner.simpleName; |
var memberName = '$typeName.${member.simpleName}'; |
if (member is MethodMirror && (member.isConstructor || member.isFactory)) { |
final separator = member.constructorName == '' ? '' : '.'; |