ソースを参照

Fixed makedocs with generic aliases.

Mark Sibly 9 年 前
コミット
8410f1c8a8
1 ファイル変更6 行追加1 行削除
  1. 6 1
      src/mx2cc/docs/docsmaker.monkey2

+ 6 - 1
src/mx2cc/docs/docsmaker.monkey2

@@ -362,10 +362,15 @@ Class DocsMaker
 	
 		Local xtype:=Cast<AliasType>( type )
 		If xtype
+			Local args:=""
+			For Local type:=Eachin xtype.types
+				args+=","+TypeName( type,prefix )
+			Next
+			If args args="\<"+args.Slice( 1 )+"\>"
 		
 			If xtype.instanceOf xtype=xtype.instanceOf
 			
-			Return MakeLink( Esc( xtype.adecl.ident ),xtype.adecl,xtype.scope )
+			Return MakeLink( Esc( xtype.adecl.ident ),xtype.adecl,xtype.scope )+args
 		Endif
 	
 		Local vtype:=TCast<VoidType>( type )