This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
Open
Description
Having obtained function names in #365 I need to get the actual strings. My current take is
nodeName, err := tools.FilterNode(node, "//uast:Function/../../Name")
if err != nil {
return nil, err
}
println(string(nodeName.(nodes.Object)["Name"].(nodes.String)))
I have to hardcode "Name"
and do two type assertions. Is it possible to add a wrapper?
Metadata
Assignees
Labels
No labels