ast: add params info to str of FnDecl (#7933)
parent
41e9a769e9
commit
a2add15558
|
@ -346,7 +346,7 @@ pub fn (node Stmt) str() string {
|
|||
return node.expr.str()
|
||||
}
|
||||
FnDecl {
|
||||
return 'fn ${node.name}() { $node.stmts.len stmts }'
|
||||
return 'fn ${node.name}( $node.params.len params ) { $node.stmts.len stmts }'
|
||||
}
|
||||
StructDecl {
|
||||
return 'struct $node.name { $node.fields.len fields }'
|
||||
|
|
Loading…
Reference in New Issue