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:
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
Block a user