parser: fix JSON encode function name on invocation

pull/4807/head^2
Ned Palacios 2020-05-10 15:30:35 +08:00 committed by GitHub
parent edb921f463
commit 01de1b6375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ fn (mut g Gen) fn_call(node ast.CallExpr) {
}
if is_json_encode {
// `json__encode` => `json__encode_User`
name += '_' + json_type_str
name += '_' + json_type_str.replace('.', '__')
}
// Generate tmp vars for values that have to be freed.
/*