From cbcfb46de72fa5f04857a0593f76e9d874d1f182 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 12 Apr 2020 14:41:08 +1200 Subject: [PATCH] node: fix node.Identifier appearing outside of resolveName() calls --- node.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node.go b/node.go index 13816e8..589bc6a 100644 --- a/node.go +++ b/node.go @@ -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) }