Interface TwingParser

interface TwingParser {
    parent: null | TwingBaseNode<any, TwingBaseNodeAttributes, TwingBaseNodeChildren>;
    addImportedSymbol(type, alias): void;
    addImportedSymbol(type, alias, name, node): void;
    addTrait(trait): void;
    embedTemplate(template): void;
    getBlock(name): null | TwingBlockNode;
    getVarName(prefix?): string;
    isMainScope(): boolean;
    parse(stream, tag?, test?): TwingTemplateNode;
    parseArguments(stream, namedArguments?, definition?, allowArrow?): TwingArrayNode;
    parseAssignmentExpression(stream): TwingWrapperNode<TwingAssignmentNode>;
    parseExpression(stream, precedence?, allowArrow?): TwingExpressionNode;
    parseFilterDefinitions(stream): {
        arguments: TwingArrayNode;
        name: string;
    }[];
    parseFilterExpressionRaw(stream, node, tag?): TwingFilterNode;
    parseMultiTargetExpression(stream): TwingWrapperNode<TwingBaseExpressionNode>;
    peekBlockStack(): string;
    popBlockStack(): void;
    popLocalScope(): void;
    pushBlockStack(name): void;
    pushLocalScope(): void;
    setBlock(name, node): void;
    setMacro(name, node): void;
    subparse(stream, tag, test): TwingBaseNode<any, TwingBaseNodeAttributes, TwingBaseNodeChildren>;
}

Properties

Methods

  • Parameters

    • Optional prefix: string

    Returns string

  • Parameters

    • name: string

    Returns void

Generated using TypeDoc