Also return from getFieldAccessTypeNode when a comma is found.

This allows to get completion support when a function with multiple
arguments is completed.
This commit is contained in:
Timon Kruiper 2020-05-18 20:59:44 +02:00
parent 31f8357e57
commit 27034abbaf

View File

@ -382,7 +382,7 @@ pub fn getFieldAccessTypeNode(
},
.Period => {
var after_period = tokenizer.next();
if (after_period.id == .Eof) {
if (after_period.id == .Eof or after_period.id == .Comma) {
return current_node;
} else if (after_period.id == .Identifier) {
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves?