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

View File

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