Skip to content

Commit

Permalink
Convert "firstExportingConsumableParent" property to "getFirstExporti…
Browse files Browse the repository at this point in the history
…ngConsumableParent()" method because it does nontrivial work
  • Loading branch information
octogonz committed Sep 12, 2022
1 parent 4df3810 commit 6d975b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api-extractor/src/collector/CollectorEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class CollectorEntity {
* Return the first consumable parent that exports this entity. If there is none, returns
* `undefined`.
*/
public get firstExportingConsumableParent(): CollectorEntity | undefined {
public getFirstExportingConsumableParent(): CollectorEntity | undefined {
for (const [parent, localExportNames] of this._localExportNamesByParent) {
if (parent.consumable && localExportNames.size > 0) {
return parent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class DeclarationReferenceGenerator {
}

const firstExportingConsumableParent: CollectorEntity | undefined =
entity.firstExportingConsumableParent;
entity.getFirstExportingConsumableParent();
if (
firstExportingConsumableParent &&
firstExportingConsumableParent.astEntity instanceof AstNamespaceImport
Expand Down

0 comments on commit 6d975b5

Please sign in to comment.