From be08f3da8b76463263bfb7e3010ce14247976056 Mon Sep 17 00:00:00 2001 From: Ryo Kitagawa Date: Mon, 11 Dec 2023 23:19:10 +0900 Subject: [PATCH] fix: SimpleTypeNode.TypeName returns *PathExpressionNode --- ast/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {