ast: add str for AssertStmt (#8021)
parent
127503c77d
commit
c39f0a7cb7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue