ast: add params info to str of FnDecl (#7933)

pull/7952/head
zakuro 2021-01-08 04:25:55 +09:00 committed by GitHub
parent 41e9a769e9
commit a2add15558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }'