如何动态生成Get&Set
#1525
Replies: 1 comment 5 replies
-
你的意思是帮你生成代码片段?目前没有这样的功能,不过你可以试试 copilot 之类的AI辅助,你写过几次后它应该就能帮你生成。 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
考虑如下代码:
local ClassA = class("A")
ClassA:Property("Property", value)
能不能有一种方式让Property方法调用的时候生成 GetProperty 和 SetProperty 接口给ClassA
Beta Was this translation helpful? Give feedback.
All reactions