@@ -18,7 +18,7 @@ mod tests {
18
18
local <??>delete4 = delete3
19
19
"# ,
20
20
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( ) ,
22
22
} ,
23
23
) ) ;
24
24
@@ -38,7 +38,7 @@ mod tests {
38
38
}
39
39
"# ,
40
40
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( ) ,
42
42
} ,
43
43
) ) ;
44
44
@@ -61,7 +61,7 @@ mod tests {
61
61
}
62
62
"# ,
63
63
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( ) ,
65
65
} ,
66
66
) ) ;
67
67
}
@@ -97,7 +97,7 @@ mod tests {
97
97
local <??>local_b = local_a
98
98
"# ,
99
99
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( ) ,
101
101
} ,
102
102
) ) ;
103
103
}
@@ -122,7 +122,7 @@ mod tests {
122
122
local <??>event = test3.event
123
123
"# ,
124
124
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( ) ,
126
126
} ,
127
127
) ) ;
128
128
}
@@ -160,7 +160,7 @@ mod tests {
160
160
---@field event fun(self: self, event: "游戏-http返回"): Trigger
161
161
"# ,
162
162
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( ) ,
164
164
} ,
165
165
) ) ;
166
166
}
@@ -179,7 +179,7 @@ mod tests {
179
179
end
180
180
"# ,
181
181
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( ) ,
183
183
} ,
184
184
) ) ;
185
185
}
@@ -200,7 +200,7 @@ mod tests {
200
200
}
201
201
"# ,
202
202
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( ) ,
204
204
} ,
205
205
) ) ;
206
206
}
@@ -219,7 +219,7 @@ mod tests {
219
219
}
220
220
"# ,
221
221
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( ) ,
223
223
} ,
224
224
) ) ;
225
225
}
@@ -239,8 +239,7 @@ mod tests {
239
239
}
240
240
"# ,
241
241
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( ) ,
244
243
} ,
245
244
) ) ;
246
245
}
@@ -261,7 +260,7 @@ mod tests {
261
260
}
262
261
"# ,
263
262
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 ```"
265
264
. to_string( ) ,
266
265
} ,
267
266
) ) ;
@@ -285,7 +284,7 @@ mod tests {
285
284
t.fu<??>nc(1)
286
285
"# ,
287
286
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( ) ,
289
288
} ,
290
289
) ) ;
291
290
}
@@ -307,7 +306,7 @@ mod tests {
307
306
local ab<??>c = t.func
308
307
"# ,
309
308
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( ) ,
311
310
} ,
312
311
) ) ;
313
312
}
0 commit comments