summaryrefslogtreecommitdiff
path: root/script/core/noder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r--script/core/noder.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index c63dfeed..1cb49e5e 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1024,11 +1024,9 @@ compileNodeMap = util.switch()
local defID = 'def:' .. id
collector.subscribe(uri, defID, noders)
- m.pushSource(noders, source, defID)
local defAnyID = 'def:dn:'
collector.subscribe(uri, defAnyID, noders)
- m.pushSource(noders, source, defAnyID)
end)
: case 'function'
: call(function (noders, id, source)
@@ -1217,12 +1215,10 @@ function m.compileNode(noders, source)
local defID = 'def:' .. id
collector.subscribe(uri, defID, noders)
- m.pushSource(noders, source, defID)
if guide.isGlobal(source) then
local defAnyID = 'def:g:'
collector.subscribe(uri, defAnyID, noders)
- m.pushSource(noders, source, defAnyID)
end
end
end
@@ -1362,6 +1358,12 @@ function m.getDocState(doc)
return getDocStateWithoutCrossFunction(doc)
end
+---@param noders noders
+---@return fun():node.id
+function m.eachID(noders)
+ return next, noders.source
+end
+
---获取对象的noders
---@param source parser.guide.object
---@return noders