/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.3-alpha
src/ScriptEngine/Machine/IRuntimeContextInstance.cs
39 строк
1 KB
Andrey Ovsiankin
Замечания от решарпера
15 июл 2021, 16:54
15 июл 2021, 16:54
b4b9664
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 OneScript.Contexts; namespace ScriptEngine.Machine { public interface IRuntimeContextInstance { bool IsIndexed { get; } bool DynamicMethodSignatures { get; } IValue GetIndexedValue(IValue index); void SetIndexedValue(IValue index, IValue val); int FindProperty(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 FindMethod(string name); int GetMethodsCount(); BslMethodInfo GetMethodInfo(int methodNumber); BslPropertyInfo GetPropertyInfo(int propertyNumber); void CallAsProcedure(int methodNumber, IValue[] arguments); void CallAsFunction(int methodNumber, IValue[] arguments, out IValue retValue); } }