llcppg/ast:field access & static

This commit is contained in:
luoliwoshang
2024-08-28 11:47:57 +08:00
parent 4d268f67ae
commit f62bcdc803

View File

@@ -218,10 +218,12 @@ func (*CommentGroup) exprNode() {}
// ------------------------------------------------ // ------------------------------------------------
type Field struct { type Field struct {
Doc *CommentGroup // associated documentation; or nil Doc *CommentGroup // associated documentation; or nil
Type Expr // field/method/parameter type; or nil Type Expr // field/method/parameter type; or nil
Names []*Ident // field/method/(type) parameter names; or nil Names []*Ident // field/method/(type) parameter names; or nil
Comment *CommentGroup // line comments; or nil Comment *CommentGroup // line comments; or nil
Access AccessSpecifier // field access(Record Type); Struct Field default is Public,Class Field default is Private
IsStatic bool // static field
} }
func (*Field) exprNode() {} func (*Field) exprNode() {}