Skip to content

Commit

Permalink
documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewnitschke-wk committed Jan 2, 2025
1 parent 3c62e21 commit 69bb98d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/symbol_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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<PrefixedIdentifier>();
if (parentPrefixIdentifier?.prefix == node) return element;
Expand Down

0 comments on commit 69bb98d

Please sign in to comment.