From fc900baf9e0a25a241e289561bfb1dd31540fe04 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 18 May 2020 17:02:29 +0200 Subject: [PATCH] parser: a minor simplification --- vlib/v/parser/parser.v | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 833c0715ad..af5e761ebd 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -93,10 +93,7 @@ pub fn parse_file(path string, b_table &table.Table, comments_mode scanner.Comme // comments_mode: comments_mode p.read_first_token() for p.tok.kind == .comment { - mut stmt := ast.Stmt{} // TODO sum type << bug - com := p.comment() - stmt = com - stmts << stmt + stmts << p.comment() } // module mut mstmt := ast.Stmt{}