EmmyLua 注解标记总结

时间:2021-07-11 21:52:58   收藏:0   阅读:224

周日,这么热的天完全不想出门,来公司玩了几乎一天的极地大乱斗。乏了,整理下清单,顺便把上周刚抽空看的 EmmyLua 注解标记整理下。只记录常用的,因为记多了,但没咋用的话,很快就忘了,不如不记。

用法

---@class my_type[:parent_type] [@comment]

类型

---@type my_type[|other_type] [@comment]

参数类型

---@param param_name my_type[|other_type] [@comment]

返回类型

---@return my_type[|other_type] [@comment]

参考

EmmyLua for IntelliJ IDEA 注解功能

原文:https://www.cnblogs.com/nickcan/p/14999060.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!