llcppsigfetch:field access & static field

This commit is contained in:
luoliwoshang
2024-08-28 14:51:36 +08:00
parent 9351a1f900
commit 7d0b47c5cb
9 changed files with 127 additions and 15 deletions

View File

@@ -143,6 +143,8 @@ func MarshalASTExpr(t ast.Expr) *cjson.JSON {
root.SetItem(c.Str("Type"), MarshalASTExpr(d.Type))
root.SetItem(c.Str("Doc"), MarshalASTExpr(d.Doc))
root.SetItem(c.Str("Comment"), MarshalASTExpr(d.Comment))
root.SetItem(c.Str("IsStatic"), boolField(d.IsStatic))
root.SetItem(c.Str("Access"), numberField(uint(d.Access)))
names := cjson.Array()
for _, n := range d.Names {
names.AddItem(MarshalASTExpr(n))