Merge pull request #737 from luoliwoshang/llcppg/ast/typeexpr
llcppg/ast:record type
This commit is contained in:
@@ -219,6 +219,14 @@ func (*FuncType) exprNode() {}
|
|||||||
|
|
||||||
// ------------------------------------------------
|
// ------------------------------------------------
|
||||||
|
|
||||||
|
type RecordType struct {
|
||||||
|
Tag Tag
|
||||||
|
Fields *FieldList
|
||||||
|
Methods []*FuncDecl
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------
|
||||||
|
|
||||||
// Template<Arg1, Arg2, ...>
|
// Template<Arg1, Arg2, ...>
|
||||||
type InstantiationType struct {
|
type InstantiationType struct {
|
||||||
Template Expr
|
Template Expr
|
||||||
@@ -285,10 +293,8 @@ func (*FuncDecl) declNode() {}
|
|||||||
// struct/union/class Name { Field1, Field2, ... };
|
// struct/union/class Name { Field1, Field2, ... };
|
||||||
type TypeDecl struct {
|
type TypeDecl struct {
|
||||||
DeclBase
|
DeclBase
|
||||||
Tag Tag
|
Name *Ident
|
||||||
Name *Ident
|
Type *RecordType
|
||||||
Fields *FieldList
|
|
||||||
Methods []*FuncDecl
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*TypeDecl) declNode() {}
|
func (*TypeDecl) declNode() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user