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()
|
return node.expr.str()
|
||||||
}
|
}
|
||||||
FnDecl {
|
FnDecl {
|
||||||
return 'fn ${node.name}() { $node.stmts.len stmts }'
|
return 'fn ${node.name}( $node.params.len params ) { $node.stmts.len stmts }'
|
||||||
}
|
}
|
||||||
StructDecl {
|
StructDecl {
|
||||||
return 'struct $node.name { $node.fields.len fields }'
|
return 'struct $node.name { $node.fields.len fields }'
|
||||||
|
|
Loading…
Reference in New Issue