From 69bb98d00f2528e0ae139d443c8d9de3df377eea Mon Sep 17 00:00:00 2001 From: Matthew Nitschke Date: Thu, 2 Jan 2025 12:39:41 -0700 Subject: [PATCH] documentation updates --- lib/src/symbol_generator.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/symbol_generator.dart b/lib/src/symbol_generator.dart index cb7addc..b2aa73f 100644 --- a/lib/src/symbol_generator.dart +++ b/lib/src/symbol_generator.dart @@ -45,8 +45,7 @@ class SymbolGenerator { var element = node.staticElement; // A SimpleIdentifier with a direct parent of a ConstructorDeclaration - // is the reference to the class itself. In scip, we want to ignore - // this as the constructor has its own definition, and only that + // is the reference to the class itself. Skip this declaration if (node.parent is ConstructorDeclaration) { return null; } @@ -57,7 +56,7 @@ class SymbolGenerator { if (parentConstructor != null) { // ConstructorNames can also include an import PrefixIdentifier: `math.Rectangle()` // both 'math' and 'Rectangle' are SimpleIdentifiers. We only want the constructor - // element fo 'Rectangle' in this case + // element for 'Rectangle' in this case final parentPrefixIdentifier = node.thisOrAncestorOfType(); if (parentPrefixIdentifier?.prefix == node) return element;