/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Libraries/Debugger.Core/MetaData/DebugLocalVariableInfo.cs
61 строка
2 KB
Бондарев Иван
initial commit
14 май 2015, 22:35
14 май 2015, 22:35
e6e67c1
Код
Авторство
О чём код?
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; namespace Debugger.MetaData { public class DebugLocalVariableInfo: System.Reflection.LocalVariableInfo { ValueGetter getter; int localIndex; DebugType localType; /// <inheritdoc/> public override int LocalIndex { get { return localIndex; } } /// <inheritdoc/> public override Type LocalType { get { return localType; } } /// <inheritdoc/> public override bool IsPinned { get { throw new NotSupportedException(); } } public string Name { get; internal set; } /// <summary> IL offset of the start of the variable scope (inclusive) </summary> public int StartOffset { get; private set; } /// <summary> IL offset of the end of the variable scope (exclusive) </summary> public int EndOffset { get; private set; } public bool IsThis { get; internal set; } public bool IsCaptured { get; internal set; } public DebugLocalVariableInfo(string name, int localIndex, int startOffset, int endOffset, DebugType localType, ValueGetter getter) { this.Name = name; this.localIndex = localIndex; this.StartOffset = startOffset; this.EndOffset = endOffset; this.localType = localType; this.getter = getter; } public Value GetValue(StackFrame context) { return getter(context); } /// <inheritdoc/> public override string ToString() { string msg = this.LocalType + " " + this.Name; if (IsCaptured) msg += " (captured)"; return msg; } } }