ast: add str for Module (#8072)

pull/8071/head
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
1 changed files with 3 additions and 0 deletions

View File

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