完全清除Resource依赖, 目前可以直接使用源码

This commit is contained in:
2025-10-08 12:00:42 +08:00
parent 0d4d4b75bb
commit a09b3c1eb1
31 changed files with 49 additions and 2926 deletions

View File

@@ -3,7 +3,6 @@ using System.Reflection.Emit;
using Flee.ExpressionElements.Base;
using Flee.InternalTypes;
using Flee.PublicTypes;
using Flee.Resources;
namespace Flee.ExpressionElements
{
@@ -21,7 +20,7 @@ namespace Flee.ExpressionElements
if ((!object.ReferenceEquals(_myCondition.ResultType, typeof(bool))))
{
base.ThrowCompileException(CompileErrorResourceKeys.FirstArgNotBoolean, CompileExceptionReason.TypeMismatch);
base.ThrowCompileException("FirstArgNotBoolean", CompileExceptionReason.TypeMismatch);
}
// The result type is the type that is common to the true/false operands
@@ -35,7 +34,7 @@ namespace Flee.ExpressionElements
}
else
{
base.ThrowCompileException(CompileErrorResourceKeys.NeitherArgIsConvertibleToTheOther, CompileExceptionReason.TypeMismatch, _myWhenTrue.ResultType.Name, _myWhenFalse.ResultType.Name);
base.ThrowCompileException("NeitherArgIsConvertibleToTheOther", CompileExceptionReason.TypeMismatch, _myWhenTrue.ResultType.Name, _myWhenFalse.ResultType.Name);
}
}