/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v1.9.0
src/ScriptEngine/ModuleImage.cs
57 строк
2 KB
Andrei Ovsiankin
Удалены неиспользуемые директивы по проекту
05 янв 2020, 23:29
05 янв 2020, 23:29
4be0088
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 System.Collections.Generic; using ScriptEngine.Machine; using ScriptEngine.Environment; namespace ScriptEngine { [Serializable] public class ModuleImage { public ModuleImage() { EntryMethodIndex = -1; Code = new List<Command>(); VariableRefs = new List<SymbolBinding>(); MethodRefs = new List<SymbolBinding>(); Methods = new List<MethodDescriptor>(); Constants = new List<ConstDefinition>(); ExportedProperties = new List<ExportedSymbol>(); ExportedMethods = new List<ExportedSymbol>(); Variables = new VariablesFrame(); } public VariablesFrame Variables { get; } public int EntryMethodIndex { get; set; } public IList<Command> Code { get; set; } public IList<SymbolBinding> VariableRefs { get; set; } public IList<SymbolBinding> MethodRefs { get; set; } public IList<MethodDescriptor> Methods { get; set; } public IList<ConstDefinition> Constants { get; set; } public IList<ExportedSymbol> ExportedProperties { get; set; } public IList<ExportedSymbol> ExportedMethods { get; set; } public int LoadAddress { get; set; } public ModuleInformation ModuleInfo { get; set; } } [Serializable] public struct MethodDescriptor { public MethodInfo Signature; public VariablesFrame Variables; public int EntryPoint; } [Serializable] public struct ExportedSymbol { public string SymbolicName; public int Index; } }