node: fix node.Identifier appearing outside of resolveName() calls

This commit is contained in:
mappu 2020-04-12 14:41:08 +12:00
parent 8af07570cd
commit cbcfb46de7

View File

@ -1734,6 +1734,9 @@ func (this *conversionState) resolveName(n node.Node) (string, error) {
}
ret = n.Parts[0].(*name.NamePart).Value
case *node.Identifier:
ret = n.Value // e.g. `array`
default:
return "", fmt.Errorf("unexpected name type %#v", n)
}