File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -1176,6 +1176,8 @@ compileNodeMap = util.switch()
1176
1176
end
1177
1177
end
1178
1178
if source .args then
1179
+ local parent = source .parent
1180
+ local parentID = guide .isSet (parent ) and getID (parent )
1179
1181
for i , arg in ipairs (source .args ) do
1180
1182
if arg [1 ] == ' self' then
1181
1183
goto CONTINUE
@@ -1192,12 +1194,26 @@ compileNodeMap = util.switch()
1192
1194
, PARAM_NAME
1193
1195
, arg [1 ]
1194
1196
))
1197
+ if parentID then
1198
+ pushForward (noders , getID (arg ), sformat (' %s%s%s'
1199
+ , parentID
1200
+ , PARAM_NAME
1201
+ , arg [1 ]
1202
+ ))
1203
+ end
1195
1204
else
1196
1205
pushForward (noders , getID (arg ), sformat (' %s%s%s'
1197
1206
, id
1198
1207
, PARAM_NAME
1199
1208
, ' ...'
1200
1209
))
1210
+ if parentID then
1211
+ pushForward (noders , getID (arg ), sformat (' %s%s%s'
1212
+ , parentID
1213
+ , PARAM_NAME
1214
+ , ' ...'
1215
+ ))
1216
+ end
1201
1217
end
1202
1218
:: CONTINUE::
1203
1219
end
Original file line number Diff line number Diff line change @@ -872,9 +872,9 @@ for _, a in ipairs(v) do
872
872
end
873
873
]]
874
874
875
- -- TEST 'number' [[
876
- ---- - @param x number
877
- -- local f
878
- --
879
- -- f = function (<?x?>) end
880
- -- ]]
875
+ TEST ' number' [[
876
+ ---@param x number
877
+ local f
878
+
879
+ f = function (<?x?>) end
880
+ ]]
You can’t perform that action at this time.
0 commit comments