// Type @Override public Node visitType_spec(IDLParser.Type_specContext ctx) { TypeSpec typeSpec = new TypeSpec(ctx.id.getText()); if (ctx.template() != null) { Node template = visitTemplate(ctx.template()); assert (template instanceof TypeSpec.Template); typeSpec.setTemplate((TypeSpec.Template) template); } return typeSpec; }