node: fix node.Identifier appearing outside of resolveName() calls
This commit is contained in:
parent
8af07570cd
commit
cbcfb46de7
3
node.go
3
node.go
@ -1734,6 +1734,9 @@ func (this *conversionState) resolveName(n node.Node) (string, error) {
|
|||||||
}
|
}
|
||||||
ret = n.Parts[0].(*name.NamePart).Value
|
ret = n.Parts[0].(*name.NamePart).Value
|
||||||
|
|
||||||
|
case *node.Identifier:
|
||||||
|
ret = n.Value // e.g. `array`
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "", fmt.Errorf("unexpected name type %#v", n)
|
return "", fmt.Errorf("unexpected name type %#v", n)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user