Skip to content

Commit

Permalink
fix: SimpleTypeNode.TypeName returns *PathExpressionNode
Browse files Browse the repository at this point in the history
  • Loading branch information
kitagry committed Dec 17, 2023
1 parent d124113 commit be08f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit be08f3d

Please sign in to comment.