Fixed lastToken for fn_proto_multi nodes

This commit is contained in:
Alexandros Naskos 2021-04-05 20:01:03 +03:00
parent 6d13591d02
commit f6bc380b95
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2

View File

@ -674,7 +674,7 @@ pub fn lastToken(tree: ast.Tree, node: ast.Node.Index) ast.TokenIndex {
n = datas[n].rhs; n = datas[n].rhs;
} else { } else {
// Use the last argument and skip right paren // Use the last argument and skip right paren
n = extra.end; n = tree.extra_data[extra.end - 1];
end_offset += 1; end_offset += 1;
} }
}, },