pike.git / src / modules / Image / mkdoc.pike

version» Context lines:

pike.git/src/modules/Image/mkdoc.pike:13:    class : mapping <- classM    "see also" : array of references    "desc" : text    "note" : mapping of "desc": text    "methods" : array of mappings <- methodM    "decl" : array of textlines of declarations    "desc" : text    "returns" : textline    "see also" : array of references    "note" : mapping of "desc": text +  "known bugs" : mapping of "desc": text    "args" : array of mappings <- argM    "args" : array of args names and types    "desc" : description    "names" : multiset of method name(s)      */      mapping moduleM, classM, methodM, argM, nowM, descM;      mapping focM(mapping dest,string name,int line)
pike.git/src/modules/Image/mkdoc.pike:74:    if (!methodM->args) methodM->args=({});    methodM->args+=({argM=nowM=(["args":({}),"_line":line])});    argM->args+=({arg}); descM=argM;    },    "note":lambda(string arg,int line)    {    if (!lower_nowM())    return complain("note w/o method, class or module");    descM=nowM->note||(nowM->note=(["_line":line]));    }, +  "bugs":lambda(string arg,int line) +  { +  if (!lower_nowM()) +  return complain("bugs w/o method, class or module"); +  descM=nowM->bugs||(nowM->bugs=(["_line":line])); +  },    "see":lambda(string arg,int line)    {    if (arg[0..4]!="also:")    return complain("see w/o 'also:'\n");    if (!lower_nowM())    return complain("see also w/o method, class or module");    nowM["see also"]=map(arg[5..]/",",stripws);    },    "returns":lambda(string arg)    {
pike.git/src/modules/Image/mkdoc.pike:181:    string res="";       if (info->desc && stripws(info->desc)!="")    res+="\n\n<blockquote>\n"+fixdesc(info->desc,myprefix)+    "\n</blockquote>\n";       if (info->note && info->note->desc)    res+="\n\n<h4>NOTE</h4>\n<blockquote>\n"+    fixdesc(info->note->desc,myprefix)+"\n</blockquote>\n";    +  if (info->bugs && info->bugs->desc) +  res+="\n\n<h4>KNOWN BUGS</h4>\n<blockquote>\n"+ +  fixdesc(info->bugs->desc,myprefix)+"\n</blockquote>\n"; +     if (info["see also"])    {    res+=    "\n\n<h4>SEE ALSO</h4>\n<blockquote> " +    map(info["see also"],make_nice_reference,myprefix)*",\n " +    "\n</blockquote>\n";    }       return res;   }
pike.git/src/modules/Image/mkdoc.pike:292:    f->write("<h4>RETURNS</h4>\n"    "\n\n<blockquote>\n"+method->returns+"\n</blockquote>\n");    }       if (method->note && method->note->desc)    {    f->write("\n\n<h4>NOTE</h4>\n<blockquote>\n"+    fixdesc(method->note->desc,prefix)+"\n</blockquote>\n");    }    +  if (method->bugs && method->bugs->desc) +  { +  f->write("\n\n<h4>KNOWN BUGS</h4>\n<blockquote>\n"+ +  fixdesc(method->bugs->desc,prefix)+"\n</blockquote>\n"); +  } +     if (method["see also"])    {    f->write("\n\n<h4>SEE ALSO</h4>\n<blockquote> " +    map(method["see also"],    make_nice_reference,prefix)*",\n " +    "\n</blockquote>\n");    }   }      void document_class(string title,