From f62bcdc803636c365a2cbbfe6d4d75ffdf297780 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Wed, 28 Aug 2024 11:47:57 +0800 Subject: [PATCH] llcppg/ast:field access & static --- chore/llcppg/ast/ast.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/chore/llcppg/ast/ast.go b/chore/llcppg/ast/ast.go index 91d051bb5..46c16dc32 100644 --- a/chore/llcppg/ast/ast.go +++ b/chore/llcppg/ast/ast.go @@ -218,10 +218,12 @@ func (*CommentGroup) exprNode() {} // ------------------------------------------------ type Field struct { - Doc *CommentGroup // associated documentation; or nil - Type Expr // field/method/parameter type; or nil - Names []*Ident // field/method/(type) parameter names; or nil - Comment *CommentGroup // line comments; or nil + Doc *CommentGroup // associated documentation; or nil + Type Expr // field/method/parameter type; or nil + Names []*Ident // field/method/(type) parameter names; 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() {}