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