%interface family of macros no longer add variable wrappers

The getter/setter methods used for wrapping methods are no longer
added to the interface class.

Closes #1524

Also add in testcase for enums.
This commit is contained in:
William S Fulton 2022-03-12 22:34:17 +00:00
commit 598736a6b2
7 changed files with 48 additions and 2 deletions

View file

@ -2323,7 +2323,7 @@ public:
String *pre_code = NewString("");
String *post_code = NewString("");
String *terminator_code = NewString("");
bool is_interface = GetFlag(parentNode(n), "feature:interface")
bool is_interface = GetFlag(parentNode(n), "feature:interface") && !checkAttribute(n, "kind", "variable")
&& !static_flag && Getattr(n, "interface:owner") == 0;
if (!proxy_flag)

View file

@ -2459,7 +2459,7 @@ public:
bool setter_flag = false;
String *pre_code = NewString("");
String *post_code = NewString("");
bool is_interface = GetFlag(parentNode(n), "feature:interface")
bool is_interface = GetFlag(parentNode(n), "feature:interface") && !checkAttribute(n, "kind", "variable")
&& !static_flag && Getattr(n, "interface:owner") == 0;
if (!proxy_flag)