mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.1123: class function not implemented yet
Problem: Class function not implemented yet. Solution: Implement defining and calling a class function.
This commit is contained in:
@@ -587,7 +587,8 @@ compile_load(
|
||||
}
|
||||
else
|
||||
{
|
||||
lvar_T lvar;
|
||||
lvar_T lvar;
|
||||
class_T *cl = NULL;
|
||||
|
||||
if (lookup_local(*arg, len, &lvar, cctx) == OK)
|
||||
{
|
||||
@@ -602,6 +603,10 @@ compile_load(
|
||||
else
|
||||
gen_load = TRUE;
|
||||
}
|
||||
else if (class_member_exists(name, &cl, &idx, cctx))
|
||||
{
|
||||
res = generate_CLASSMEMBER(cctx, TRUE, cl, idx);
|
||||
}
|
||||
else
|
||||
{
|
||||
// "var" can be script-local even without using "s:" if it
|
||||
|
Reference in New Issue
Block a user