File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/BizHawk.Client.Common/lua/Documentation Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,20 @@ public string Generate(LuaDocumentation docs)
7070 string libraryDescription = libraryGroup . First ( ) . LibraryDescription ;
7171
7272 if ( ! string . IsNullOrEmpty ( libraryDescription ) )
73+ {
7374 sb . AppendLine ( FormatDescription ( libraryDescription ) ) ;
75+ }
76+
7477 sb . AppendLine ( $ "---@class { library } ") ;
7578 sb . AppendLine ( $ "{ library } = {{}}") ;
7679 sb . AppendLine ( ) ;
7780
7881 foreach ( var func in libraryGroup . OrderBy ( func => func . Name ) )
7982 {
8083 if ( ! string . IsNullOrEmpty ( func . Description ) )
84+ {
8185 sb . AppendLine ( FormatDescription ( func . Description ) ) ;
86+ }
8287
8388 if ( func . Example != null )
8489 {
@@ -93,7 +98,9 @@ public string Generate(LuaDocumentation docs)
9398 }
9499
95100 if ( func . IsDeprecated )
101+ {
96102 sb . AppendLine ( "---@deprecated" ) ;
103+ }
97104
98105 foreach ( var parameter in func . Method . GetParameters ( ) )
99106 {
You can’t perform that action at this time.
0 commit comments