summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-08-27 19:18:23 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-27 19:18:23 +0200
commitcd7293bf6c358bb0e183582a2927fc03566d29f6 (patch)
treed1fe17d7fdd8f5a2414761eab2879a80494e4e27 /src/structs.h
parent03e44a1d70e914504e6151fe88ad1e574cbf0a59 (diff)
patch 9.0.1804: Vim9: no support for private object methodsv9.0.1804
Problem: Vim9: no support for private object methods Solution: Add support for private object/class methods closes: #12920 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h
index ba712c1d22..b655e555b7 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1489,8 +1489,8 @@ typedef struct {
#define TTFLAG_SUPER 0x40 // object from "super".
typedef enum {
- VIM_ACCESS_PRIVATE, // read/write only inside th class
- VIM_ACCESS_READ, // read everywhere, write only inside th class
+ VIM_ACCESS_PRIVATE, // read/write only inside the class
+ VIM_ACCESS_READ, // read everywhere, write only inside the class
VIM_ACCESS_ALL // read/write everywhere
} omacc_T;
@@ -1790,6 +1790,7 @@ struct ufunc_S
class_T *uf_class; // for object method and constructor; does not
// count for class_refcount
+ int uf_private; // TRUE if class or object private method
garray_T uf_args; // arguments, including optional arguments
garray_T uf_def_args; // default argument expressions