From 407da09acf658cefc0000c53eaf350fd958e4ff6 Mon Sep 17 00:00:00 2001 From: zakuro Date: Sun, 10 Jan 2021 03:49:27 +0900 Subject: [PATCH] ast: add str for EnumDecl (#7977) --- 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 1d20f39cf3..c10aa90a05 100644 --- a/vlib/v/ast/str.v +++ b/vlib/v/ast/str.v @@ -348,6 +348,9 @@ pub fn (node Stmt) str() string { FnDecl { return 'fn ${node.name}( $node.params.len params ) { $node.stmts.len stmts }' } + EnumDecl { + return 'enum $node.name { $node.fields.len fields }' + } StructDecl { return 'struct $node.name { $node.fields.len fields }' }