@@ -18,7 +18,7 @@ mod tests {
1818 local <??>delete4 = delete3
1919 "# ,
2020 VirtualHoverResult {
21- value: "\n ```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a\n \n \n " . to_string( ) ,
21+ value: "```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a" . to_string( ) ,
2222 } ,
2323 ) ) ;
2424
@@ -38,7 +38,7 @@ mod tests {
3838 }
3939 "# ,
4040 VirtualHoverResult {
41- value: "\n ```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n 删除\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a\n \n \n " . to_string( ) ,
41+ value: "```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n 删除\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a" . to_string( ) ,
4242 } ,
4343 ) ) ;
4444
@@ -61,7 +61,7 @@ mod tests {
6161 }
6262 "# ,
6363 VirtualHoverResult {
64- value: "\n ```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a\n \n \n " . to_string( ) ,
64+ value: "```lua\n local function delete(a: number)\n -> a: number\n \n ```\n \n ---\n \n @*param* `a` — 参数a\n \n \n \n @*return* `a` — 返回值a" . to_string( ) ,
6565 } ,
6666 ) ) ;
6767 }
@@ -97,7 +97,7 @@ mod tests {
9797 local <??>local_b = local_a
9898 "# ,
9999 VirtualHoverResult {
100- value: "\n ```lua\n (method) Game:add(key: string, value: string)\n -> ret: number\n \n ```\n \n ---\n \n 说明\n \n @*param* `key` — 参数key\n \n @*param* `value` — 参数value\n \n \n \n @*return* `ret` — 返回值\n \n \n " . to_string( ) ,
100+ value: "```lua\n (method) Game:add(key: string, value: string)\n -> ret: number\n \n ```\n \n ---\n \n 说明\n \n @*param* `key` — 参数key\n \n @*param* `value` — 参数value\n \n \n \n @*return* `ret` — 返回值" . to_string( ) ,
101101 } ,
102102 ) ) ;
103103 }
@@ -122,7 +122,7 @@ mod tests {
122122 local <??>event = test3.event
123123 "# ,
124124 VirtualHoverResult {
125- value: "\n ```lua\n (method) Test3:event(event: \" B\" , key: string)\n ```\n \n in class `Hover.Test3`\n \n ---\n \n ---\n \n ```lua\n (method) Test3:event(event: \" A\" , key: string)\n ```\n " . to_string( ) ,
125+ value: "```lua\n (method) Test3:event(event: \" B\" , key: string)\n ```\n \n in class `Hover.Test3`\n \n ---\n \n ---\n \n ```lua\n (method) Test3:event(event: \" A\" , key: string)\n ```" . to_string( ) ,
126126 } ,
127127 ) ) ;
128128 }
@@ -160,7 +160,7 @@ mod tests {
160160 ---@field event fun(self: self, event: "游戏-http返回"): Trigger
161161 "# ,
162162 VirtualHoverResult {
163- value: "\n ```lua\n (method) GameA:event(event_type: EventTypeA, ...: any)\n -> Trigger\n \n ```\n \n ---\n \n 注册引擎事件\n \n ---\n \n ```lua\n (method) GameA:event(event: \" 游戏-初始化\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-追帧完成\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-逻辑不同步\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-地形预设加载完成\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-结束\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-暂停\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-恢复\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-昼夜变化\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 区域-进入\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 区域-离开\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-http返回\" ) -> Trigger\n ```\n " . to_string( ) ,
163+ value: "```lua\n (method) GameA:event(event_type: EventTypeA, ...: any)\n -> Trigger\n \n ```\n \n ---\n \n 注册引擎事件\n \n ---\n \n ```lua\n (method) GameA:event(event: \" 游戏-初始化\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-追帧完成\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-逻辑不同步\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-地形预设加载完成\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-结束\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-暂停\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-恢复\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-昼夜变化\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 区域-进入\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 区域-离开\" ) -> Trigger\n ```\n \n ```lua\n (method) GameA:event(event: \" 游戏-http返回\" ) -> Trigger\n ```" . to_string( ) ,
164164 } ,
165165 ) ) ;
166166 }
@@ -179,7 +179,7 @@ mod tests {
179179 end
180180 "# ,
181181 VirtualHoverResult {
182- value: "\n ```lua\n function ClosureTest.e(a: string, b: number)\n ```\n \n ---\n \n ---\n \n ```lua\n (field) ClosureTest.e(a: string, b: number)\n ```\n " . to_string( ) ,
182+ value: "```lua\n function ClosureTest.e(a: string, b: number)\n ```\n \n ---\n \n ---\n \n ```lua\n (field) ClosureTest.e(a: string, b: number)\n ```" . to_string( ) ,
183183 } ,
184184 ) ) ;
185185 }
@@ -200,7 +200,7 @@ mod tests {
200200 }
201201 "# ,
202202 VirtualHoverResult {
203- value: "\n ```lua\n (method) T:func()\n ```\n \n ---\n \n 注释注释\n " . to_string( ) ,
203+ value: "```lua\n (method) T:func()\n ```\n \n ---\n \n 注释注释" . to_string( ) ,
204204 } ,
205205 ) ) ;
206206 }
@@ -219,7 +219,7 @@ mod tests {
219219 }
220220 "# ,
221221 VirtualHoverResult {
222- value: "\n ```lua\n (field) a: string = \" a\" \n ```\n \n ---\n \n 注释注释a\n " . to_string( ) ,
222+ value: "```lua\n (field) a: string = \" a\" \n ```\n \n ---\n \n 注释注释a" . to_string( ) ,
223223 } ,
224224 ) ) ;
225225 }
@@ -239,8 +239,7 @@ mod tests {
239239 }
240240 "# ,
241241 VirtualHoverResult {
242- value: "\n ```lua\n (field) T.func(self: string)\n ```\n \n ---\n \n 注释注释\n "
243- . to_string( ) ,
242+ value: "```lua\n (field) T.func(self: string)\n ```\n \n ---\n \n 注释注释" . to_string( ) ,
244243 } ,
245244 ) ) ;
246245 }
@@ -261,7 +260,7 @@ mod tests {
261260 }
262261 "# ,
263262 VirtualHoverResult {
264- value: "\n ```lua\n (field) T.func(a: (string|number))\n ```\n \n ---\n \n 注释1\n \n 注释2\n \n ---\n \n ```lua\n (field) T.func(a: string)\n ```\n \n ```lua\n (field) T.func(a: number)\n ```\n "
263+ value: "```lua\n (field) T.func(a: (string|number))\n ```\n \n ---\n \n 注释1\n \n 注释2\n \n ---\n \n ```lua\n (field) T.func(a: string)\n ```\n \n ```lua\n (field) T.func(a: number)\n ```"
265264 . to_string( ) ,
266265 } ,
267266 ) ) ;
@@ -285,7 +284,7 @@ mod tests {
285284 t.fu<??>nc(1)
286285 "# ,
287286 VirtualHoverResult {
288- value: "\n ```lua\n (field) T.func(a: number)\n ```\n \n ---\n \n 注释2\n " . to_string( ) ,
287+ value: "```lua\n (field) T.func(a: number)\n ```\n \n ---\n \n 注释2" . to_string( ) ,
289288 } ,
290289 ) ) ;
291290 }
@@ -307,7 +306,7 @@ mod tests {
307306 local ab<??>c = t.func
308307 "# ,
309308 VirtualHoverResult {
310- value: "\n ```lua\n (field) T.func(a: number)\n ```\n \n ---\n \n 注释2\n \n 注释1\n \n ---\n \n ```lua\n (field) T.func(a: string)\n ```\n " . to_string( ) ,
309+ value: "```lua\n (field) T.func(a: number)\n ```\n \n ---\n \n 注释2\n \n 注释1\n \n ---\n \n ```lua\n (field) T.func(a: string)\n ```" . to_string( ) ,
311310 } ,
312311 ) ) ;
313312 }
0 commit comments