1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ast: add str for AssertStmt (#8021)

This commit is contained in:
zakuro 2021-01-15 08:17:26 +09:00 committed by GitHub
parent 127503c77d
commit c39f0a7cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,6 +338,9 @@ pub fn (node &BranchStmt) str() string {
pub fn (node Stmt) str() string {
match node {
AssertStmt {
return 'assert $node.expr'
}
AssignStmt {
mut out := ''
for i, left in node.left {