llcppg design

This commit is contained in:
xushiwei
2024-08-08 11:49:55 +08:00
parent 93c33e08c2
commit 34899e8d36
2 changed files with 19 additions and 255 deletions

View File

@@ -269,7 +269,7 @@ func (*TypeDecl) declNode() {}
// AST File
type Include struct {
Path string
Path string `json:"path"`
}
func (*Include) ppdNode() {}
@@ -284,9 +284,9 @@ func (*Macro) ppdNode() {}
// ------------------------------------------------
type File struct {
Decls []Decl
Includes []*Include
Macros []*Macro
Decls []Decl `json:"decls"`
Includes []*Include `json:"includes,omitempty"`
Macros []*Macro `json:"macros,omitempty"`
}
// =============================================================================