Merge pull request #662 from xushiwei/cast

TypedefDecl
This commit is contained in:
xushiwei
2024-08-06 15:10:15 +08:00
committed by GitHub

View File

@@ -203,17 +203,20 @@ type Location struct {
} }
type DeclBase struct { type DeclBase struct {
Doc *CommentGroup // associated documentation; or nil
Loc *Location Loc *Location
Parent Expr // namespace or class Parent Expr // namespace or class
} }
// ------------------------------------------------
// typedef Type Name;
type TypedefDecl struct { type TypedefDecl struct {
DeclBase DeclBase
Type Expr Type Expr
Names []*Ident Name *Ident
} }
// typedef Type Name1, Name2, ...;
func (*TypedefDecl) declNode() {} func (*TypedefDecl) declNode() {}
// ------------------------------------------------ // ------------------------------------------------