summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/generic.lua2
-rw-r--r--script/core/noder.lua1
-rw-r--r--script/parser/guide.lua2
3 files changed, 3 insertions, 2 deletions
diff --git a/script/core/generic.lua b/script/core/generic.lua
index ce957a71..5b52a304 100644
--- a/script/core/generic.lua
+++ b/script/core/generic.lua
@@ -1,7 +1,7 @@
local guide = require 'parser.guide'
local noder = require "core.noder"
----@class generic.value
+---@class generic.value: parser.guide.object
---@field type string
---@field closure generic.closure
---@field proto parser.guide.object
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 043a532a..814936ad 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1237,6 +1237,7 @@ compileNodeMap = util.switch()
: case 'in'
: call(function (noders, id, source)
local keys = source.keys
+ ---@type parser.guide.object[]
local exps = source.exps
if not keys or not exps then
return
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index b65d9680..58981763 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -398,7 +398,7 @@ function m.getRoot(obj)
end
---@param obj parser.guide.object
----@return string
+---@return uri
function m.getUri(obj)
if obj.uri then
return obj.uri