/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/OneScript.Core/Contexts/IRuntimeContextInstance.cs
54 строки
2 KB
EvilBeaver
Полностью удалены API без процесса
19 май 2025, 09:56
19 май 2025, 09:56
c6b37cd
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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.Execution; using ScriptEngine.Machine; namespace OneScript.Contexts { public interface IRuntimeContextInstance { bool IsIndexed { get; } bool DynamicMethodSignatures { get; } IValue GetIndexedValue(IValue index); void SetIndexedValue(IValue index, IValue val); int GetPropertyNumber(string name); bool IsPropReadable(int propNum); bool IsPropWritable(int propNum); IValue GetPropValue(int propNum); void SetPropValue(int propNum, IValue newVal); int GetPropCount(); string GetPropName(int propNum); int GetMethodNumber(string name); int GetMethodsCount(); BslMethodInfo GetMethodInfo(int methodNumber); BslPropertyInfo GetPropertyInfo(int propertyNumber); void CallAsProcedure(int methodNumber, IValue[] arguments, IBslProcess process); void CallAsFunction(int methodNumber, IValue[] arguments, out IValue retValue, IBslProcess process); [Obsolete("Use function with IBslProcess parameter")] void CallAsProcedure(int methodNumber, IValue[] arguments) { CallAsProcedure(methodNumber, arguments, ForbiddenBslProcess.Instance); } [Obsolete("Use function with IBslProcess parameter")] void CallAsFunction(int methodNumber, IValue[] arguments, out IValue retValue) { CallAsFunction(methodNumber, arguments, out retValue, ForbiddenBslProcess.Instance); } } }