[перевірена версія][перевірена версія]
Вилучено вміст Додано вміст
мНемає опису редагування
Немає опису редагування
Рядок 15:
-- Створення чотирьох різних tidyVal функцій, так що ми не повинні перевірити
-- опції щоразу при їх визові.
 
-- This module provides easy processing of arguments passed to Scribunto from
-- #invoke. It is intended for use by other Lua modules, and should not be
-- called from #invoke directly.
 
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
 
local function tidyValDefault(key, val)
Рядок 117 ⟶ 124:
fargs = frame.args
else
local title = parent:getTitle():gsub('/sandboxпесочница$', '')
local found = false
if matchesTitle(options.wrappers, title) then
Рядок 131 ⟶ 138:
 
-- We test for false specifically here so that nil (the default) acts like true.
-- ми тестуємо на хибність тут, тому nil (за замовчуванням) діє як істинність
if found or options.frameOnly == false then
pargs = parent.args
Рядок 141 ⟶ 147:
else
-- options.wrapper isn't set, so check the other options.
-- options.wrapper не встановлено, отож перевіримо інші опції.
if not options.parentOnly then
fargs = frame.args
Рядок 294 ⟶ 299:
-- the value in metaArgs, so that __index, __pairs and __ipairs do
-- not use a previous existing value, if present; and we also need
-- to memorizememoize the nil in nilArgs, so that the value isn't looked
-- up in the argument tables if it is accessed again.
--]]