parser: a minor simplification

pull/4945/head
Alexander Medvednikov 2020-05-18 17:02:29 +02:00
parent 90270d8791
commit fc900baf9e
1 changed files with 1 additions and 4 deletions

View File

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