Kind: Class
Source: atloria-monorepo/libs/parser-core/src/parsers/backend/go.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 | any |
version | any |
supportedPatterns | any |
Where it refuses work
GoParserstops the work with an early return when!source.trim().GoParserstops the work with an early return when!rawPath.startsWith('/').GoParserstops the work with an early return whenseen.has(key).
When something fails
GoParserhandles failure in 1 place: it turns it into a return value in all 1.
Was this page helpful?