Skip to content

Commit 1a63c92

Browse files
authored
Merge pull request #750 from luoliwoshang/llcppg/ast/access
llcppg/ast:field access & static
2 parents 9510b5a + f62bcdc commit 1a63c92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

chore/llcppg/ast/ast.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,12 @@ func (*CommentGroup) exprNode() {}
218218
// ------------------------------------------------
219219

220220
type Field struct {
221-
Doc *CommentGroup // associated documentation; or nil
222-
Type Expr // field/method/parameter type; or nil
223-
Names []*Ident // field/method/(type) parameter names; or nil
224-
Comment *CommentGroup // line comments; or nil
221+
Doc *CommentGroup // associated documentation; or nil
222+
Type Expr // field/method/parameter type; or nil
223+
Names []*Ident // field/method/(type) parameter names; or nil
224+
Comment *CommentGroup // line comments; or nil
225+
Access AccessSpecifier // field access(Record Type); Struct Field default is Public,Class Field default is Private
226+
IsStatic bool // static field
225227
}
226228

227229
func (*Field) exprNode() {}

0 commit comments

Comments
 (0)