mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.2170: Vim9: no support for const/final class/objects vars
Problem: Vim9: no support for const/final class/objects vars Solution: Support final and const object and class variables closes: #13655 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d8bf87c9fb
commit
e5437c5427
@@ -1523,14 +1523,18 @@ typedef enum {
|
||||
VIM_ACCESS_ALL // read/write everywhere
|
||||
} omacc_T;
|
||||
|
||||
#define OCMFLAG_HAS_TYPE 0x01 // type specified explicitly
|
||||
#define OCMFLAG_FINAL 0x02 // "final" object/class member
|
||||
#define OCMFLAG_CONST 0x04 // "const" object/class member
|
||||
|
||||
/*
|
||||
* Entry for an object or class member variable.
|
||||
*/
|
||||
typedef struct {
|
||||
char_u *ocm_name; // allocated
|
||||
omacc_T ocm_access;
|
||||
int ocm_has_type; // type specified explicitly
|
||||
type_T *ocm_type;
|
||||
int ocm_flags;
|
||||
char_u *ocm_init; // allocated
|
||||
} ocmember_T;
|
||||
|
||||
|
Reference in New Issue
Block a user