summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 853bd7de..1ccc54aa 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -309,6 +309,11 @@ function mt:view(default, uri)
end
end
+function mt:eachView()
+ self:_computeViews()
+ return next, self.views
+end
+
---@param other vm.infer
---@return vm.infer
function mt:merge(other)