ast: add str for AssertStmt (#8021)

pull/8117/head
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
1 changed files with 3 additions and 0 deletions

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 {