Skip to content

Commit

Permalink
feat(ProjectParser): add children getter
Browse files Browse the repository at this point in the history
  • Loading branch information
RealShadowNova committed May 2, 2023
1 parent cee8e60 commit 694f659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/structures/ProjectParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ export class ProjectParser {
}
}

public get children(): (ClassParser | EnumParser | FunctionParser | InterfaceParser | NamespaceParser | TypeAliasParser | VariableParser)[] {
return [...this.classes, ...this.enums, ...this.functions, ...this.interfaces, ...this.namespaces, ...this.typeAliases, ...this.variables];
}

/**
* Find a parser by id.
* @since 3.0.0
Expand Down

0 comments on commit 694f659

Please sign in to comment.