projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
6708d7f
)
deduct variable names from implementation
author
Michael Wallner
<mike@php.net>
Tue, 17 Oct 2017 08:49:40 +0000
(10:49 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 17 Oct 2017 08:49:40 +0000
(10:49 +0200)
src/types/free_exp.c
patch
|
blob
|
history
diff --git
a/src/types/free_exp.c
b/src/types/free_exp.c
index 5603554cf15381d2c93a84c1d387c2c5c3e630cd..57ede26295cc969d460516362bc9a9ebe0726597 100644
(file)
--- a/
src/types/free_exp.c
+++ b/
src/types/free_exp.c
@@
-102,8
+102,7
@@
bool psi_free_exp_validate(struct psi_data *data, struct psi_free_exp *exp,
/* now check for known vars */
exp->let = calloc(psi_plist_count(exp->vars), sizeof(*exp->let));
for (i = 0; psi_plist_get(exp->vars, i, &free_var); ++i) {
- if (!psi_decl_arg_get_by_var(free_var, impl->decl->args,
- impl->decl->func)) {
+ if (!psi_impl_get_decl_arg(impl, free_var)) {
data->error(data, free_var->token, PSI_WARNING,
"Unknown variable '%s' of `free` statement"
" of implementation '%s'",