Added a bool flag to the Block_Stmt struct to have information whether or not 'do' was used vs brackets in the AST
This commit is contained in:
1 parent
872e97dba6
commit
3a1bee19a9
2 files changed
+2
No files matched your search
@@ -1217,6 +1217,7 @@ convert_stmt_to_body :: proc(p: ^Parser, stmt: ^ast.Stmt) -> ^ast.Stmt {
|
||||
bs.stmts = make([]^ast.Stmt, 1);
|
||||
bs.stmts[0] = stmt;
|
||||
bs.close = stmt.end;
|
||||
bs.uses_do = true;
|
||||
return bs;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user