pike.git / lib / modules / Tools.pmod / Standalone.pmod / autodoc_to_html.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1144:    }    else    error( "Malformed argument element.\n" + c->html_of_node() + "\n" );    break;       case "variable":    if(variable++) ret += "<br />\n";    ret += "<tt>";    cc = c->get_first_element("modifiers");    if(cc) ret += map(cc->get_children(), parse_type)*" " + " "; -  ret += parse_type(get_first_element(c->get_first_element("type")), "variable") + " " + -  c->get_attributes()->class_path + "<b><font color='#F000F0'>" + c->get_attributes()->name + -  "</font></b></tt>"; +  if (c->get_first_element("type")) { +  ret += parse_type(get_first_element(c->get_first_element("type")), +  "variable") + " " + +  c->get_attributes()->class_path + "<b><font color='#F000F0'>" + +  c->get_attributes()->name + "</font></b></tt>"; +  } else +  error("Malformed variable element.\n" + c->html_of_node() + "\n");    break;       case "constant":    if(const++) ret += "<br />\n";    ret += "<tt>";    cc = c->get_first_element("modifiers");    if(cc) ret += map(cc->get_children(), parse_type)*" " + " ";    ret += "constant ";    if (Node type = c->get_first_element ("type"))    ret += parse_type (get_first_element (type), "constant") + " ";