修复一些错误并更新README

This commit is contained in:
2025-10-09 14:40:58 +08:00
parent a09b3c1eb1
commit 63f09b6196
13 changed files with 83 additions and 60 deletions

View File

@@ -4,7 +4,9 @@ using System.Reflection.Emit;
namespace Flee.InternalTypes
{
[Obsolete("Manages branch information and allows us to determine if we should emit a short or long branch")]
/// <summary>
/// 管理分支信息,允许我们确定是否应该发出短分支或长分支
/// </summary>
internal class BranchManager
{
private readonly IList<BranchInfo> MyBranchInfos;
@@ -143,7 +145,9 @@ namespace Flee.InternalTypes
}
}
[Obsolete("Represents a location in an IL stream")]
/// <summary>
/// 表示IL流中的位置
/// </summary>
internal class ILLocation : IEquatable<ILLocation>, IComparable<ILLocation>
{
private int _myPosition;
@@ -214,7 +218,9 @@ namespace Flee.InternalTypes
}
}
[Obsolete("Represents a branch from a start location to an end location")]
/// <summary>
/// 表示从起始位置到结束位置的分支
/// </summary>
internal class BranchInfo
{
private readonly ILLocation _myStart;

View File

@@ -160,7 +160,9 @@ namespace Flee.InternalTypes
public static object Instance => OurInstance;
}
[Obsolete("Helper class to resolve overloads")]
/// <summary>
/// 用于解析重载的辅助类
/// </summary>
internal class CustomMethodInfo : IComparable<CustomMethodInfo>, IEquatable<CustomMethodInfo>
{
/// <summary>
@@ -494,7 +496,9 @@ namespace Flee.InternalTypes
}
}
[Obsolete("Wraps an expression element so that it is loaded from a local slot")]
/// <summary>
/// 包装表达式元素,使其从本地槽位加载
/// </summary>
internal class LocalBasedElement : ExpressionElement
{
private readonly int _myIndex;
@@ -514,7 +518,9 @@ namespace Flee.InternalTypes
public override System.Type ResultType => _myTarget.ResultType;
}
[Obsolete("Helper class for storing strongly-typed properties")]
/// <summary>
/// 用于存储强类型属性的辅助类
/// </summary>
internal class PropertyDictionary
{
private readonly Dictionary<string, object> _myProperties;

View File

@@ -6,7 +6,9 @@ using System.Reflection.Emit;
namespace Flee.InternalTypes
{
[Obsolete("Holds various shared utility methods")]
/// <summary>
/// 包含各种共享实用方法的工具类
/// </summary>
internal class Utility
{
private Utility()