ast: add str for Module (#8072)
parent
1e853b0efc
commit
e8ab79205f
|
@ -347,6 +347,9 @@ pub fn (node Stmt) str() string {
|
|||
EnumDecl {
|
||||
return 'enum $node.name { $node.fields.len fields }'
|
||||
}
|
||||
Module {
|
||||
return 'module $node.name'
|
||||
}
|
||||
StructDecl {
|
||||
return 'struct $node.name { $node.fields.len fields }'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue