1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ast: add str for Module (#8072)

This commit is contained in:
zakuro 2021-01-13 14:00:53 +09:00 committed by GitHub
parent 1e853b0efc
commit e8ab79205f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }'
}