File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
jig-core/src/main/resources/templates/assets Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ function createFieldsList(fields) {
383383 * @returns {HTMLElement }
384384 */
385385function createMethodItem ( method ) {
386- const methodTerm = getMethodTerm ( method . fqn ) ;
386+ const methodTerm = getMethodTerm ( method . fqn , true ) ;
387387
388388 const paramElements = method . parameterTypeRefs
389389 . map ( param => createTypeRefLink ( param ) )
Original file line number Diff line number Diff line change @@ -795,7 +795,7 @@ globalThis.Jig.glossary.getTypeTerm = function getTypeTerm(fqn) {
795795} ;
796796
797797// メソッドFQN("pkg.Class#method(args)"形式)から Term{title, description} を取得
798- globalThis . Jig . glossary . getMethodTerm = function getMethodTerm ( fqn ) {
798+ globalThis . Jig . glossary . getMethodTerm = function getMethodTerm ( fqn , fallbackNameOnly = false ) {
799799 if ( ! fqn ) return { title : "" , description : "" } ;
800800 const term = globalThis . Jig . glossary . findTerm ( fqn ) ;
801801 if ( term ) return term ;
@@ -817,6 +817,11 @@ globalThis.Jig.glossary.getMethodTerm = function getMethodTerm(fqn) {
817817 const term2 = globalThis . Jig . glossary . findTerm ( simpleArgsFqn ) ;
818818 if ( term2 ) return term2 ;
819819
820+ // フォールバック: methodName 形式
821+ if ( fallbackNameOnly ) {
822+ return { title : methodName , description : "" } ;
823+ }
824+
820825 // フォールバック: methodName(simpleArgs) 形式
821826 const simpleArgs = argsStr
822827 ? argsStr . split ( ',' ) . map ( arg => {
You can’t perform that action at this time.
0 commit comments