patch 9.0.2019: Vim9: no support for funcrefs
Problem: Vim9: no support for funcrefs
Solution: Add support for object/class funcref members
closes: #11981 #12417 #12960 #12324 #13333
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
diff --git a/src/vim9.h b/src/vim9.h
index 7854869..6bfbd9e 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -383,6 +383,7 @@
char_u *fre_func_name; // function name for legacy function
loopvarinfo_T fre_loopvar_info; // info about variables inside loops
class_T *fre_class; // class for a method
+ int fre_object_method; // class or object method
int fre_method_idx; // method index on "fre_class"
} funcref_extra_T;