Skip to content

TypeScriptParser

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/api/src/parser/parsers/typescript.parser.ts

Implements: CodeParser

Methods

MethodSignatureReturns
parseparse(code: string, filename: undefined)Promise<ParseResult>
extractSymbolsextractSymbols(code: string)Promise<ParserSymbol[]>
extractDependenciesextractDependencies(code: string)Promise<Dependency[]>

Properties

PropertyType
languageany
supportedExtensionsany

Where it refuses work

  • TypeScriptParser stops the work with an early return when !node.parameters.

When something fails

  • TypeScriptParser handles failure in 1 place: it logs it and continues in all 1.

Referenced By

  • ParserModule (MODULE_PROVIDES)
  • ParserService (DEPENDS_ON)

Was this page helpful?

Download as PDF