@@ -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() {}
|
||||||
|
|
||||||
// ------------------------------------------------
|
// ------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user