Skip to content

Commit

Permalink
Merge pull request #38 from kitagry/fix-simple-type-node
Browse files Browse the repository at this point in the history
SimpleTypeNode.TypeName returns *PathExpressionNode
  • Loading branch information
goccy authored Dec 18, 2023
2 parents d124113 + be08f3d commit d769c58
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 d769c58

Please sign in to comment.