Kind: Class
Source: atloria-monorepo/apps/frontend-parser/src/parsers/angular.parser.ts
Implements: IParser
Methods
| Method | Signature | Returns |
|---|---|---|
initialize | initialize(config: ParserConfig) | Promise<void> |
canParse | canParse(filePath: string) | boolean |
parseFile | parseFile(filePath: string, content: string) | Promise<ParseResult> |
parseFiles | parseFiles(files: ParseFileInput[]) | Promise<ParseResult[]> |
destroy | destroy() | Promise<void> |
Properties
| Property | Type |
|---|---|
name | string |
version | string |
supportedPatterns | string[] |
Where it refuses work
AngularParserstops the work withErrorwhen!this.project— “Parser not initialized. Call initialize() first.”.AngularParserstops the work with an early return when!name, in 4 places.AngularParserstops the work with an early return when!this.canParse(filePath).AngularParserstops the work with an early return when!fileContent.trim().AngularParserstops the work with an early return whenjsDocs.length > 0.
When something fails
AngularParserhandles failure in 1 place: it turns it into a return value in all 1.
Was this page helpful?