File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ local lookIntoChild = util.switch()
627
627
--- @param action parser.object
628
628
--- @param topNode vm.node
629
629
--- @param outNode ? vm.node
630
- : call (function (tracer , action , topNode , outNode )
630
+ : call (function (tracer , action , topNode , outNode )
631
631
if not action [1 ] or not action [2 ] then
632
632
tracer :lookIntoChild (action [1 ], topNode )
633
633
tracer :lookIntoChild (action [2 ], topNode )
@@ -677,8 +677,10 @@ local lookIntoChild = util.switch()
677
677
end
678
678
elseif handler .type == ' getfield'
679
679
and handler .node .type == ' getlocal' then
680
- local tys = getNodeTypesWithLiteralField (
681
- tracer .uri , handler .node , handler .field [1 ], checker )
680
+ local tys
681
+ if handler .field then
682
+ tys = getNodeTypesWithLiteralField (tracer .uri , handler .node , handler .field [1 ], checker )
683
+ end
682
684
683
685
-- TODO: handle more types
684
686
if tys and # tys == 1 then
You can’t perform that action at this time.
0 commit comments