Annotations¶
EmmyLua use annotation
to help IDE improve code completions and other functionality.
Attention
These features just help IDE to improve code completions and other functionality. It’s unrelated to Lua’s actual exectuion, since they’re just comments
- @class class declaration annotation
- @type type annotation
- @alias 别名注解
- @param parameter type annotation
- @return function return type annotation
- @field field annotation
- @generic generic annotation
- @vararg 不定参数注解
- @language language injection
- array type
- table type
- function types
- 字面量类型
- @see references
- Full examples