analysis: store function node in parameter declaration

This commit is contained in:
Techatrix
2022-09-24 21:25:32 +02:00
parent adb012001f
commit 6ff19e8b5f
4 changed files with 16 additions and 10 deletions

View File

@@ -516,8 +516,9 @@ pub fn symbolReferences(
try imports.resize(arena.allocator(), 0);
}
},
.param_decl => |param| blk: {
.param_payload => |pay| blk: {
// Rename the param tok.
const param = pay.param;
for (curr_handle.document_scope.scopes.items) |scope| {
if (scope.data != .function) continue;