mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix JSON encode function name on invocation
This commit is contained in:
@@ -424,7 +424,7 @@ fn (mut g Gen) fn_call(node ast.CallExpr) {
|
|||||||
}
|
}
|
||||||
if is_json_encode {
|
if is_json_encode {
|
||||||
// `json__encode` => `json__encode_User`
|
// `json__encode` => `json__encode_User`
|
||||||
name += '_' + json_type_str
|
name += '_' + json_type_str.replace('.', '__')
|
||||||
}
|
}
|
||||||
// Generate tmp vars for values that have to be freed.
|
// Generate tmp vars for values that have to be freed.
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user