File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,13 @@ static Object serializeComment(const CommentInfo &I, Object &Description) {
140140 insertComment (Description, TextCommentsArray, " BriefComments" );
141141 else if (I.Name == " return" )
142142 insertComment (Description, TextCommentsArray, " ReturnComments" );
143+ else if (I.Name == " throws" || I.Name == " throw" ) {
144+ json::Value ThrowsVal = Object ();
145+ auto &ThrowsObj = *ThrowsVal.getAsObject ();
146+ ThrowsObj[" Exception" ] = I.Args .front ();
147+ ThrowsObj[" Children" ] = TextCommentsArray;
148+ insertComment (Description, ThrowsVal, " ThrowsComments" );
149+ }
143150 return Obj;
144151 }
145152
Original file line number Diff line number Diff line change 5454 </div >
5555 { {/CodeComments} }
5656{ {/HasCodeComments} }
57+ { {#HasThrowsComments} }
58+ <h3 >Throws</h3 >
59+ { {#ThrowsComments} }
60+ <div >
61+ <b >{ {ThrowName} }</b > { {#Children} }{ {> Comments} }{ {/Children} }
62+ </div >
63+ { {/ThrowsComments} }
64+ { {/HasThrowsComments} }
5765{ {#BlockCommandComment} }
5866 <div class =" block-command-comment__command" >
5967 <div class =" block-command-command" >
Original file line number Diff line number Diff line change @@ -384,6 +384,10 @@ HTML-CALC: </div>
384384HTML-CALC: <h3>Returns</h3>
385385HTML-CALC: <p> double The result of a / b.</p>
386386HTML-CALC: <p></p>
387+ HTML-CALC: <h3>Throws</h3>
388+ HTML-CALC: <div>
389+ HTML-CALC: <b></b> <div>
390+ HTML-CALC: <p>if b is zero.</p>
387391HTML-CALC: </div>
388392HTML-CALC: </div>
389393HTML-CALC: </div>
You can’t perform that action at this time.
0 commit comments