/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/OneScript.Core/Execution/ExecutionExtensions.cs
25 строк
827 B
EvilBeaver
Поисправлял немного предупреждений от анализатора
18 сен 2022, 09:55
18 сен 2022, 09:55
fd2865d
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System; using OneScript.Values; using ScriptEngine.Machine; namespace OneScript.Execution { public static class ExecutionExtensions { public static void ExecuteModuleBody(this ExecutionDispatcher dispatcher, BslObjectValue target, IExecutableModule module) { var bodyMethod = module.ModuleBody; if (bodyMethod != default) { dispatcher.Execute(target, module, bodyMethod, Array.Empty<IValue>()); } } } }