diff --git a/ast/node.go b/ast/node.go index e39b6a04..0e8c5259 100644 --- a/ast/node.go +++ b/ast/node.go @@ -1376,10 +1376,10 @@ type SimpleTypeNode struct { *TypeBaseNode } -func (n *SimpleTypeNode) TypeName() string { +func (n *SimpleTypeNode) TypeName() *PathExpressionNode { var v unsafe.Pointer internal.ASTSimpleType_type_name(n.getRaw(), &v) - return helper.PtrToString(v) + return newPathExpressionNode(v) } type ArrayTypeNode struct {