We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A.lua中
---@class A local a = {} --- @alias print fun():void --- @desc 打印 --- @return void function a.print() end return a
B.lua中
---@type A local a = require "a" ---@see print _G.print = a.print
在A.lua 中 查看函数的定义为
在B.lua 中 在 a.print处停留查看的信息为 在 _G.print 处查看定义为
想问问现有的机制中,如何才能让 _G.print处看到的定义 和 A.lua中还有B.lua中的 a.print处的一致
再延伸点 将一个写好emmylua注释标签的变量,作为等式左值赋值给等式右值。 左值能够用上右值的声明
期望的样子可能是:
---@type A#print _G.print = a.print
---@aliasType A _G.print = aDefinedFunValue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A.lua中
B.lua中
在A.lua 中 查看函数的定义为
在B.lua 中 在 a.print处停留查看的信息为
在 _G.print 处查看定义为
想问问现有的机制中,如何才能让 _G.print处看到的定义 和 A.lua中还有B.lua中的 a.print处的一致
再延伸点
将一个写好emmylua注释标签的变量,作为等式左值赋值给等式右值。 左值能够用上右值的声明
期望的样子可能是:
The text was updated successfully, but these errors were encountered: