Search in sources :

Example 1 with Define_expressionContext

use of jetbrick.template.parser.grammer.JetTemplateParser.Define_expressionContext in project jetbrick-template-1x by subchen.

the class JetTemplateCodeVisitor method visitDefine_expression_list.

@Override
public Code visitDefine_expression_list(Define_expression_listContext ctx) {
    List<Define_expressionContext> define_expression_list = ctx.define_expression();
    SegmentListCode code = new SegmentListCode(define_expression_list.size());
    for (Define_expressionContext define_expression : define_expression_list) {
        code.addChild((SegmentCode) define_expression.accept(this));
    }
    return code;
}
Also used : Define_expressionContext(jetbrick.template.parser.grammer.JetTemplateParser.Define_expressionContext) SegmentListCode(jetbrick.template.parser.code.SegmentListCode)

Aggregations

SegmentListCode (jetbrick.template.parser.code.SegmentListCode)1 Define_expressionContext (jetbrick.template.parser.grammer.JetTemplateParser.Define_expressionContext)1