/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/ScriptEngine/Machine/ExecutionFrame.cs
45 строк
1 KB
Andrei Ovsiankin
Добавил класс составного списка для скоупов вместо массивов
02 июн 2024, 22:13
02 июн 2024, 22:13
28c3059
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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.Collections.Generic; using OneScript.Contexts; using OneScript.Language; namespace ScriptEngine.Machine { internal class ExecutionFrame { public IVariable[] Locals; public int InstructionPointer; public int LineNumber; public bool DiscardReturnValue; public string MethodName; public ScriptException LastException; public StackRuntimeModule Module; public bool IsReentrantCall; public readonly Stack<IValue> LocalFrameStack = new Stack<IValue>(); public AttachedContext ThisScope { get; set; } public IReadOnlyList<AttachedContext> Scopes { get; set; } public override string ToString() { return $"{MethodName}: {LineNumber} ({Module.Source.Name})"; } } public struct ExecutionFrameInfo { public string Source; public int LineNumber; public string MethodName; internal ExecutionFrame FrameObject; } }