Open vmarkovtsev opened 5 years ago
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?
"Name"
Having obtained function names in #365 I need to get the actual strings. My current take is
I have to hardcode
"Name"
and do two type assertions. Is it possible to add a wrapper?