Search in sources :

Example 1 with Type_nameContext

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

the class JetTemplateCodeVisitor method visitType_list.

@Override
public Code visitType_list(Type_listContext ctx) {
    List<Type_nameContext> type_name_list = ctx.type_name();
    SegmentListCode code = new SegmentListCode(type_name_list.size());
    for (Type_nameContext type_name : type_name_list) {
        Code c = type_name.accept(this);
        code.addChild((SegmentCode) c);
    }
    return code;
}
Also used : Type_nameContext(jetbrick.template.parser.grammer.JetTemplateParser.Type_nameContext) SegmentListCode(jetbrick.template.parser.code.SegmentListCode) ScopeCode(jetbrick.template.parser.code.ScopeCode) BlockCode(jetbrick.template.parser.code.BlockCode) SegmentListCode(jetbrick.template.parser.code.SegmentListCode) TemplateClassCode(jetbrick.template.parser.code.TemplateClassCode) TextCode(jetbrick.template.parser.code.TextCode) ForExpressionCode(jetbrick.template.parser.code.ForExpressionCode) SegmentCode(jetbrick.template.parser.code.SegmentCode) MacroCode(jetbrick.template.parser.code.MacroCode) Code(jetbrick.template.parser.code.Code) DefineExpressionCode(jetbrick.template.parser.code.DefineExpressionCode) TagCode(jetbrick.template.parser.code.TagCode)

Aggregations

BlockCode (jetbrick.template.parser.code.BlockCode)1 Code (jetbrick.template.parser.code.Code)1 DefineExpressionCode (jetbrick.template.parser.code.DefineExpressionCode)1 ForExpressionCode (jetbrick.template.parser.code.ForExpressionCode)1 MacroCode (jetbrick.template.parser.code.MacroCode)1 ScopeCode (jetbrick.template.parser.code.ScopeCode)1 SegmentCode (jetbrick.template.parser.code.SegmentCode)1 SegmentListCode (jetbrick.template.parser.code.SegmentListCode)1 TagCode (jetbrick.template.parser.code.TagCode)1 TemplateClassCode (jetbrick.template.parser.code.TemplateClassCode)1 TextCode (jetbrick.template.parser.code.TextCode)1 Type_nameContext (jetbrick.template.parser.grammer.JetTemplateParser.Type_nameContext)1