From e8ab79205f64af90abd668bb7f0b6159b301021b Mon Sep 17 00:00:00 2001 From: zakuro Date: Wed, 13 Jan 2021 14:00:53 +0900 Subject: [PATCH] ast: add str for Module (#8072) --- vlib/v/ast/str.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/ast/str.v b/vlib/v/ast/str.v index 36badc0505..e49f0d69fe 100644 --- a/vlib/v/ast/str.v +++ b/vlib/v/ast/str.v @@ -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 }' }