@@ -614,6 +614,14 @@ const UsecaseApp = {
614614 ]
615615 } ) ;
616616
617+ // Method Description
618+ if ( methodDescription ) {
619+ methodSection . appendChild ( createElement ( "section" , {
620+ className : "description markdown" ,
621+ innerHTML : globalThis . Jig . markdown . parse ( methodDescription )
622+ } ) ) ;
623+ }
624+
617625 // Diagrams
618626 const usecaseDiagram = buildUsecaseDiagram ( method , diagramContext ) ;
619627 const hasUsecaseDiagram = usecaseDiagram . edges . length > 0 ;
@@ -736,29 +744,18 @@ const UsecaseApp = {
736744 }
737745
738746 const dl = createElement ( "dl" , { className : "depends" } ) ;
739-
740747 if ( method . parameterTypeRefs . length > 0 ) {
741748 dl . appendChild ( createElement ( "dt" , { textContent : "要求するもの(引数)" } ) ) ;
742749 method . parameterTypeRefs . forEach ( parameterTypeRef => {
743750 dl . appendChild ( createElement ( "dd" , { children : [ createElementForTypeRef ( parameterTypeRef ) ] } ) ) ;
744751 } ) ;
745752 }
746-
747753 if ( method . returnTypeRef . fqn !== 'void' ) {
748754 dl . appendChild ( createElement ( "dt" , { textContent : "得られるもの(戻り値)" } ) ) ;
749755 dl . appendChild ( createElement ( "dd" , { children : [ createElementForTypeRef ( method . returnTypeRef ) ] } ) ) ;
750756 }
751-
752757 methodSection . appendChild ( dl ) ;
753758
754- // Method Description
755- if ( methodDescription ) {
756- methodSection . appendChild ( createElement ( "section" , {
757- className : "description markdown" ,
758- innerHTML : globalThis . Jig . markdown . parse ( methodDescription )
759- } ) ) ;
760- }
761-
762759 section . appendChild ( methodSection ) ;
763760 } ) ;
764761
0 commit comments