Kind: Class
Source: atloria-monorepo/packages/core/src/rendering/directive-parser.ts
Directive Parser
Methods
| Method | Signature | Returns |
|---|---|---|
parse | parse(content: string) | DocumentAST |
Where it refuses work
DirectiveParserstops the work with an early return whenexpr.startsWith('!').DirectiveParserstops the work with an early return whenexpr.startsWith('(') && expr.endsWith(')').
When something fails
DirectiveParserhandles failure in 1 place: it turns it into a return value in all 1.
Was this page helpful?