完全清除Resource依赖, 目前可以直接使用源码
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Reflection.Emit;
|
||||
using System.Reflection;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
|
||||
namespace Flee.ExpressionElements.Base
|
||||
@@ -114,7 +113,7 @@ namespace Flee.ExpressionElements.Base
|
||||
|
||||
protected void ThrowOperandTypeMismatch(object operation, Type leftType, Type rightType)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.OperationNotDefinedForTypes, CompileExceptionReason.TypeMismatch, operation, leftType.Name, rightType.Name);
|
||||
base.ThrowCompileException("OperationNotDefinedForTypes", CompileExceptionReason.TypeMismatch, operation, leftType.Name, rightType.Name);
|
||||
}
|
||||
|
||||
protected abstract Type GetResultType(Type leftType, Type rightType);
|
||||
|
@@ -2,7 +2,6 @@
|
||||
using System.Diagnostics;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements.Base
|
||||
{
|
||||
@@ -30,15 +29,16 @@ namespace Flee.ExpressionElements.Base
|
||||
|
||||
protected void ThrowCompileException(string messageKey, CompileExceptionReason reason, params object[] arguments)
|
||||
{
|
||||
string messageTemplate = FleeResourceManager.Instance.GetCompileErrorString(messageKey);
|
||||
string message = string.Format(messageTemplate, arguments);
|
||||
//string messageTemplate = FleeResourceManager.Instance.GetCompileErrorString(messageKey);
|
||||
//string message = string.Format(messageTemplate, arguments);
|
||||
string message = $"[{messageKey}]{string.Join(',', arguments)}";
|
||||
message = string.Concat(this.Name, ": ", message);
|
||||
throw new ExpressionCompileException(message, reason);
|
||||
}
|
||||
|
||||
protected void ThrowAmbiguousCallException(Type leftType, Type rightType, object operation)
|
||||
{
|
||||
this.ThrowCompileException(CompileErrorResourceKeys.AmbiguousOverloadedOperator, CompileExceptionReason.AmbiguousMatch, leftType.Name, rightType.Name, operation);
|
||||
this.ThrowCompileException("AmbiguousOverloadedOperator", CompileExceptionReason.AmbiguousMatch, leftType.Name, rightType.Name, operation);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Flee.ExpressionElements.Base
|
||||
get
|
||||
{
|
||||
string key = this.GetType().Name;
|
||||
string value = FleeResourceManager.Instance.GetElementNameString(key);
|
||||
string value = $"{key}";
|
||||
Debug.Assert(value != null, $"Element name for '{key}' not in resource file");
|
||||
return value;
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ using System.Diagnostics;
|
||||
using System.Reflection.Emit;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
|
||||
namespace Flee.ExpressionElements.Base.Literals
|
||||
@@ -12,7 +11,7 @@ namespace Flee.ExpressionElements.Base.Literals
|
||||
{
|
||||
protected void OnParseOverflow(string image)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.ValueNotRepresentableInType, CompileExceptionReason.ConstantOverflow, image, this.ResultType.Name);
|
||||
base.ThrowCompileException("ValueNotRepresentableInType", CompileExceptionReason.ConstantOverflow, image, this.ResultType.Name);
|
||||
}
|
||||
|
||||
public static void EmitLoad(Int32 value, FleeILGenerator ilg)
|
||||
|
@@ -5,7 +5,6 @@ using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements.Base
|
||||
{
|
||||
@@ -62,11 +61,11 @@ namespace Flee.ExpressionElements.Base
|
||||
|
||||
if (this.IsStatic == true && this.SupportsStatic == false && IsExtensionMethod == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.StaticMemberCannotBeAccessedWithInstanceReference, CompileExceptionReason.TypeMismatch, MyName);
|
||||
base.ThrowCompileException("StaticMemberCannotBeAccessedWithInstanceReference", CompileExceptionReason.TypeMismatch, MyName);
|
||||
}
|
||||
else if (this.IsStatic == false && this.SupportsInstance == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.ReferenceToNonSharedMemberRequiresObjectReference, CompileExceptionReason.TypeMismatch, MyName);
|
||||
base.ThrowCompileException("ReferenceToNonSharedMemberRequiresObjectReference", CompileExceptionReason.TypeMismatch, MyName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements.Base
|
||||
{
|
||||
@@ -17,7 +16,7 @@ namespace Flee.ExpressionElements.Base
|
||||
|
||||
if (_myResultType == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.OperationNotDefinedForType, CompileExceptionReason.TypeMismatch, MyChild.ResultType.Name);
|
||||
base.ThrowCompileException("OperationNotDefinedForType", CompileExceptionReason.TypeMismatch, MyChild.ResultType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,6 @@ using System.Reflection;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
|
||||
namespace Flee.ExpressionElements
|
||||
@@ -21,7 +20,7 @@ namespace Flee.ExpressionElements
|
||||
|
||||
if (_myDestType == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.CouldNotResolveType, CompileExceptionReason.UndefinedName, GetDestTypeString(destTypeParts, isArray));
|
||||
base.ThrowCompileException("CouldNotResolveType", CompileExceptionReason.UndefinedName, GetDestTypeString(destTypeParts, isArray));
|
||||
}
|
||||
|
||||
if (isArray == true)
|
||||
@@ -257,7 +256,7 @@ namespace Flee.ExpressionElements
|
||||
|
||||
private void ThrowInvalidCastException()
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.CannotConvertType, CompileExceptionReason.InvalidExplicitCast, _myCastExpression.ResultType.Name, _myDestType.Name);
|
||||
base.ThrowCompileException("CannotConvertType", CompileExceptionReason.InvalidExplicitCast, _myCastExpression.ResultType.Name, _myDestType.Name);
|
||||
}
|
||||
|
||||
private static bool IsCastableNumericType(Type t)
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,6 @@ using Flee.ExpressionElements.Base;
|
||||
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -62,7 +61,7 @@ namespace Flee.ExpressionElements
|
||||
|
||||
if (MyTargetCollectionType == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.SearchArgIsNotKnownCollectionType, CompileExceptionReason.TypeMismatch, MyTargetCollectionElement.ResultType.Name);
|
||||
base.ThrowCompileException("SearchArgIsNotKnownCollectionType", CompileExceptionReason.TypeMismatch, MyTargetCollectionElement.ResultType.Name);
|
||||
}
|
||||
|
||||
// Validate that the operand type is compatible with the collection
|
||||
@@ -71,7 +70,7 @@ namespace Flee.ExpressionElements
|
||||
|
||||
if (ImplicitConverter.EmitImplicitConvert(MyOperand.ResultType, p1.ParameterType, null) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.OperandNotConvertibleToCollectionType, CompileExceptionReason.TypeMismatch, MyOperand.ResultType.Name, p1.ParameterType.Name);
|
||||
base.ThrowCompileException("OperandNotConvertibleToCollectionType", CompileExceptionReason.TypeMismatch, MyOperand.ResultType.Name, p1.ParameterType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,6 @@ using Flee.ExpressionElements.Base.Literals;
|
||||
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
|
||||
namespace Flee.ExpressionElements.Literals
|
||||
@@ -19,7 +18,7 @@ namespace Flee.ExpressionElements.Literals
|
||||
|
||||
if (DateTime.TryParseExact(image, options.DateTimeFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out _myValue) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.CannotParseType, CompileExceptionReason.InvalidFormat, typeof(DateTime).Name);
|
||||
base.ThrowCompileException("CannotParseType", CompileExceptionReason.InvalidFormat, typeof(DateTime).Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,6 @@ using System.Reflection.Emit;
|
||||
using Flee.ExpressionElements.Base.Literals;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements.Literals
|
||||
{
|
||||
@@ -15,7 +14,7 @@ namespace Flee.ExpressionElements.Literals
|
||||
{
|
||||
if (TimeSpan.TryParse(image, out _myValue) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.CannotParseType, CompileExceptionReason.InvalidFormat, typeof(TimeSpan).Name);
|
||||
base.ThrowCompileException("CannotParseType", CompileExceptionReason.InvalidFormat, typeof(TimeSpan).Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,6 @@ using Flee.ExpressionElements.Base;
|
||||
using Flee.ExpressionElements.Base.Literals;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements.MemberElements
|
||||
{
|
||||
@@ -69,11 +68,11 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
{
|
||||
if (previous == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.UndefinedFunction, CompileExceptionReason.UndefinedName, MyName, _myArguments);
|
||||
base.ThrowCompileException("UndefinedFunction", CompileExceptionReason.UndefinedName, MyName, _myArguments);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.UndefinedFunctionOnType, CompileExceptionReason.UndefinedName, MyName, _myArguments, previous.TargetType.Name);
|
||||
base.ThrowCompileException("UndefinedFunctionOnType", CompileExceptionReason.UndefinedName, MyName, _myArguments, previous.TargetType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,17 +80,17 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
{
|
||||
if (previous == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.NoAccessibleMatches, CompileExceptionReason.AccessDenied, MyName, _myArguments);
|
||||
base.ThrowCompileException("NoAccessibleMatches", CompileExceptionReason.AccessDenied, MyName, _myArguments);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.NoAccessibleMatchesOnType, CompileExceptionReason.AccessDenied, MyName, _myArguments, previous.TargetType.Name);
|
||||
base.ThrowCompileException("NoAccessibleMatchesOnType", CompileExceptionReason.AccessDenied, MyName, _myArguments, previous.TargetType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
private void ThrowAmbiguousMethodCallException()
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.AmbiguousCallOfFunction, CompileExceptionReason.AmbiguousMatch, MyName, _myArguments);
|
||||
base.ThrowCompileException("AmbiguousCallOfFunction", CompileExceptionReason.AmbiguousMatch, MyName, _myArguments);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -220,7 +219,7 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
// Any function reference in an expression must return a value
|
||||
if (object.ReferenceEquals(this.Method.ReturnType, typeof(void)))
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.FunctionHasNoReturnValue, CompileExceptionReason.FunctionHasNoReturnValue, MyName);
|
||||
base.ThrowCompileException("FunctionHasNoReturnValue", CompileExceptionReason.FunctionHasNoReturnValue, MyName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -10,7 +10,6 @@ using Flee.ExpressionElements.Literals.Integral;
|
||||
using Flee.ExpressionElements.Literals.Real;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
|
||||
|
||||
@@ -59,11 +58,11 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
|
||||
if (MyPrevious == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.NoIdentifierWithName, CompileExceptionReason.UndefinedName, MyName);
|
||||
base.ThrowCompileException("NoIdentifierWithName", CompileExceptionReason.UndefinedName, MyName);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.NoIdentifierWithNameOnType, CompileExceptionReason.UndefinedName, MyName, MyPrevious.TargetType.Name);
|
||||
base.ThrowCompileException("NoIdentifierWithNameOnType", CompileExceptionReason.UndefinedName, MyName, MyPrevious.TargetType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,11 +83,11 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
// More than one accessible member
|
||||
if (previous == null)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.IdentifierIsAmbiguous, CompileExceptionReason.AmbiguousMatch, MyName);
|
||||
base.ThrowCompileException("IdentifierIsAmbiguous", CompileExceptionReason.AmbiguousMatch, MyName);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.IdentifierIsAmbiguousOnType, CompileExceptionReason.AmbiguousMatch, MyName, previous.TargetType.Name);
|
||||
base.ThrowCompileException("IdentifierIsAmbiguousOnType", CompileExceptionReason.AmbiguousMatch, MyName, previous.TargetType.Name);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@@ -5,7 +5,6 @@ using System.Reflection.Emit;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
|
||||
namespace Flee.ExpressionElements.MemberElements
|
||||
@@ -36,7 +35,7 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
// Not an array, so try to find an indexer on the type
|
||||
if (this.FindIndexer(target) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.TypeNotArrayAndHasNoIndexerOfType, CompileExceptionReason.TypeMismatch, target.Name, _myIndexerElements);
|
||||
base.ThrowCompileException("TypeNotArrayAndHasNoIndexerOfType", CompileExceptionReason.TypeMismatch, target.Name, _myIndexerElements);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,11 +45,11 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
|
||||
if (_myIndexerElements.Count > 1)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.MultiArrayIndexNotSupported, CompileExceptionReason.TypeMismatch);
|
||||
base.ThrowCompileException("MultiArrayIndexNotSupported", CompileExceptionReason.TypeMismatch);
|
||||
}
|
||||
else if (ImplicitConverter.EmitImplicitConvert(_myIndexerElement.ResultType, typeof(Int32), null) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.ArrayIndexersMustBeOfType, CompileExceptionReason.TypeMismatch, typeof(Int32).Name);
|
||||
base.ThrowCompileException("CompileErrorResourceKeys.ArrayIndexersMustBeOfType", CompileExceptionReason.TypeMismatch, typeof(Int32).Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,6 @@ using System.Collections;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
|
||||
namespace Flee.ExpressionElements.MemberElements
|
||||
@@ -86,7 +85,7 @@ namespace Flee.ExpressionElements.MemberElements
|
||||
|
||||
if (elements.Count == 0)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.NamespaceCannotBeUsedAsType, CompileExceptionReason.TypeMismatch, currentImport.Name);
|
||||
base.ThrowCompileException("NamespaceCannotBeUsedAsType", CompileExceptionReason.TypeMismatch, currentImport.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,6 @@ using System.Reflection.Emit;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.ExpressionElements
|
||||
{
|
||||
@@ -37,7 +36,7 @@ namespace Flee.ExpressionElements
|
||||
{
|
||||
if (ImplicitConverter.EmitImplicitConvert(_myChild.ResultType, _myResultType, null) == false)
|
||||
{
|
||||
base.ThrowCompileException(CompileErrorResourceKeys.CannotConvertTypeToExpressionResult, CompileExceptionReason.TypeMismatch, _myChild.ResultType.Name, _myResultType.Name);
|
||||
base.ThrowCompileException("CannotConvertTypeToExpressionResult", CompileExceptionReason.TypeMismatch, _myChild.ResultType.Name, _myResultType.Name);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,6 @@ using System.Reflection;
|
||||
using Flee.ExpressionElements;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.PublicTypes;
|
||||
using Flee.Resources;
|
||||
using IDynamicExpression = Flee.PublicTypes.IDynamicExpression;
|
||||
using System;
|
||||
|
||||
@@ -161,7 +160,7 @@ namespace Flee.InternalTypes
|
||||
Utility.AssertNotNull(owner, "owner");
|
||||
if (_myOptions.OwnerType.IsAssignableFrom(owner.GetType()) == false)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.NewOwnerTypeNotAssignableToCurrentOwner);
|
||||
string msg = Utility.GetGeneralErrorMessage("NewOwnerTypeNotAssignableToCurrentOwner");
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.InternalTypes
|
||||
{
|
||||
@@ -321,8 +320,9 @@ namespace Flee.InternalTypes
|
||||
|
||||
public static int GetILGeneratorLength(ILGenerator ilg)
|
||||
{
|
||||
System.Reflection.FieldInfo fi = typeof(ILGenerator).GetField("m_length", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
return (int)fi.GetValue(ilg);
|
||||
//System.Reflection.FieldInfo fi = typeof(ILGenerator).GetField("m_length", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
//return (int)fi.GetValue(ilg);
|
||||
return ilg.ILOffset;
|
||||
}
|
||||
|
||||
public static bool IsLongBranch(int startPosition, int endPosition)
|
||||
@@ -338,14 +338,14 @@ namespace Flee.InternalTypes
|
||||
|
||||
public static string GetGeneralErrorMessage(string key, params object[] args)
|
||||
{
|
||||
string msg = FleeResourceManager.Instance.GetGeneralErrorString(key);
|
||||
return string.Format(msg, args);
|
||||
string msg = $"{key}";
|
||||
return $"[{msg}]{string.Join(',',args)}";
|
||||
}
|
||||
|
||||
public static string GetCompileErrorMessage(string key, params object[] args)
|
||||
{
|
||||
string msg = FleeResourceManager.Instance.GetCompileErrorString(key);
|
||||
return string.Format(msg, args);
|
||||
string msg = $"{key}";
|
||||
return $"[{msg}]{string.Join(',', args)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.Parsing;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.PublicTypes
|
||||
{
|
||||
@@ -53,7 +52,7 @@ namespace Flee.PublicTypes
|
||||
if (_myReason == CompileExceptionReason.SyntaxError)
|
||||
{
|
||||
Exception innerEx = this.InnerException;
|
||||
string msg = $"{Utility.GetCompileErrorMessage(CompileErrorResourceKeys.SyntaxError)}: {innerEx.Message}";
|
||||
string msg = $"{Utility.GetCompileErrorMessage("SyntaxError")}: {innerEx.Message}";
|
||||
return msg;
|
||||
}
|
||||
else
|
||||
|
@@ -5,7 +5,6 @@ using Flee.CalcEngine.PublicTypes;
|
||||
using Flee.ExpressionElements.Base;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.Parsing;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.PublicTypes
|
||||
{
|
||||
@@ -70,7 +69,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (isAccessible == false)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.TypeNotAccessibleToExpression, t.Name);
|
||||
string msg = Utility.GetGeneralErrorMessage("TypeNotAccessibleToExpression", t.Name);
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
}
|
||||
|
@@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.PublicTypes
|
||||
{
|
||||
@@ -156,7 +155,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (mi == null)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.CouldNotFindPublicStaticMethodOnType, methodName, t.Name);
|
||||
string msg = Utility.GetGeneralErrorMessage("CouldNotFindPublicStaticMethodOnType", methodName, t.Name);
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
|
||||
@@ -172,7 +171,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (mi.IsStatic == false | mi.IsPublic == false)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.OnlyPublicStaticMethodsCanBeImported);
|
||||
string msg = Utility.GetGeneralErrorMessage("OnlyPublicStaticMethodsCanBeImported");
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
|
||||
|
@@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Flee.InternalTypes;
|
||||
using Flee.Resources;
|
||||
|
||||
namespace Flee.PublicTypes
|
||||
{
|
||||
@@ -278,7 +277,7 @@ namespace Flee.PublicTypes
|
||||
Utility.AssertNotNull(importNamespace, "importNamespace");
|
||||
if (importNamespace.Length == 0)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.InvalidNamespaceName);
|
||||
string msg = Utility.GetGeneralErrorMessage("InvalidNamespaceName");
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using Flee.InternalTypes;
|
||||
using Flee.Resources;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -65,7 +64,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (_myVariables.ContainsKey(name) == true)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.VariableWithNameAlreadyDefined, name);
|
||||
string msg = Utility.GetGeneralErrorMessage("VariableWithNameAlreadyDefined", name);
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
|
||||
@@ -96,7 +95,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (success == false & throwOnNotFound == true)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.UndefinedVariable, name);
|
||||
string msg = Utility.GetGeneralErrorMessage("UndefinedVariable", name);
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
else
|
||||
@@ -175,7 +174,7 @@ namespace Flee.PublicTypes
|
||||
|
||||
if (requiredType.IsAssignableFrom(valueType) == false)
|
||||
{
|
||||
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.VariableValueNotAssignableToType, valueType.Name, requiredType.Name);
|
||||
string msg = Utility.GetGeneralErrorMessage("VariableValueNotAssignableToType", valueType.Name, requiredType.Name);
|
||||
throw new ArgumentException(msg);
|
||||
}
|
||||
}
|
||||
|
424
Resources/CompileErrors.Designer.cs
generated
424
Resources/CompileErrors.Designer.cs
generated
@@ -1,424 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Flee.Resources {
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class CompileErrors {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal CompileErrors() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.CompileErrors", typeof(CompileErrors).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ambiguous call of function '{0}({1})'.
|
||||
/// </summary>
|
||||
internal static string AmbiguousCallOfFunction {
|
||||
get {
|
||||
return ResourceManager.GetString("AmbiguousCallOfFunction", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ambiguous overloaded operator ('{2}') in types '{0}' and '{1}'.
|
||||
/// </summary>
|
||||
internal static string AmbiguousOverloadedOperator {
|
||||
get {
|
||||
return ResourceManager.GetString("AmbiguousOverloadedOperator", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Analysis: {0}.
|
||||
/// </summary>
|
||||
internal static string ANALYSIS {
|
||||
get {
|
||||
return ResourceManager.GetString("ANALYSIS", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Array indexers must be of type '{0}'.
|
||||
/// </summary>
|
||||
internal static string ArrayIndexersMustBeOfType {
|
||||
get {
|
||||
return ResourceManager.GetString("ArrayIndexersMustBeOfType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The calculation engine does not contain the atom '${0}'.
|
||||
/// </summary>
|
||||
internal static string CalcEngineDoesNotContainAtom {
|
||||
get {
|
||||
return ResourceManager.GetString("CalcEngineDoesNotContainAtom", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot convert type '{0}' to '{1}'.
|
||||
/// </summary>
|
||||
internal static string CannotConvertType {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotConvertType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot convert type '{0}' to expression result of '{1}'.
|
||||
/// </summary>
|
||||
internal static string CannotConvertTypeToExpressionResult {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotConvertTypeToExpressionResult", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to String was not recognized as a valid '{0}'.
|
||||
/// </summary>
|
||||
internal static string CannotParseType {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotParseType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot reference a calculation engine atom without a calculation engine.
|
||||
/// </summary>
|
||||
internal static string CannotReferenceCalcEngineAtomWithoutCalcEngine {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotReferenceCalcEngineAtomWithoutCalcEngine", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not resolve type of '{0}'.
|
||||
/// </summary>
|
||||
internal static string CouldNotResolveType {
|
||||
get {
|
||||
return ResourceManager.GetString("CouldNotResolveType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to First argument does not evaluate to a Boolean.
|
||||
/// </summary>
|
||||
internal static string FirstArgNotBoolean {
|
||||
get {
|
||||
return ResourceManager.GetString("FirstArgNotBoolean", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Function '{0}' does not return a value.
|
||||
/// </summary>
|
||||
internal static string FunctionHasNoReturnValue {
|
||||
get {
|
||||
return ResourceManager.GetString("FunctionHasNoReturnValue", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The field/property/variable name '{0}' is ambiguous.
|
||||
/// </summary>
|
||||
internal static string IdentifierIsAmbiguous {
|
||||
get {
|
||||
return ResourceManager.GetString("IdentifierIsAmbiguous", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The field/property/variable name '{0}' is ambiguous on type '{1}'.
|
||||
/// </summary>
|
||||
internal static string IdentifierIsAmbiguousOnType {
|
||||
get {
|
||||
return ResourceManager.GetString("IdentifierIsAmbiguousOnType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Internal error: {0}.
|
||||
/// </summary>
|
||||
internal static string INTERNAL_ERROR {
|
||||
get {
|
||||
return ResourceManager.GetString("INTERNAL_ERROR", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Invalid Token: {0}.
|
||||
/// </summary>
|
||||
internal static string INVALID_TOKEN {
|
||||
get {
|
||||
return ResourceManager.GetString("INVALID_TOKEN", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to I/O error: {0}.
|
||||
/// </summary>
|
||||
internal static string IO {
|
||||
get {
|
||||
return ResourceManager.GetString("IO", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Line: {0}, Column: {1}.
|
||||
/// </summary>
|
||||
internal static string LineColumn {
|
||||
get {
|
||||
return ResourceManager.GetString("LineColumn", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Multiple array indexes are not supported.
|
||||
/// </summary>
|
||||
internal static string MultiArrayIndexNotSupported {
|
||||
get {
|
||||
return ResourceManager.GetString("MultiArrayIndexNotSupported", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Namespace '{0}' cannot be used as a type.
|
||||
/// </summary>
|
||||
internal static string NamespaceCannotBeUsedAsType {
|
||||
get {
|
||||
return ResourceManager.GetString("NamespaceCannotBeUsedAsType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot determine result type of expression; neither the True ({0}) or False ({1}) arguments are convertible to one another.
|
||||
/// </summary>
|
||||
internal static string NeitherArgIsConvertibleToTheOther {
|
||||
get {
|
||||
return ResourceManager.GetString("NeitherArgIsConvertibleToTheOther", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not find any accessible matches for '{0}({1})'.
|
||||
/// </summary>
|
||||
internal static string NoAccessibleMatches {
|
||||
get {
|
||||
return ResourceManager.GetString("NoAccessibleMatches", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not find any accessible matches for '{0}({1})' on type '{2}'.
|
||||
/// </summary>
|
||||
internal static string NoAccessibleMatchesOnType {
|
||||
get {
|
||||
return ResourceManager.GetString("NoAccessibleMatchesOnType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not find a field/property/variable with the name '{0}'.
|
||||
/// </summary>
|
||||
internal static string NoIdentifierWithName {
|
||||
get {
|
||||
return ResourceManager.GetString("NoIdentifierWithName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not find a field/property/variable with the name '{0}' on the type '{1}'.
|
||||
/// </summary>
|
||||
internal static string NoIdentifierWithNameOnType {
|
||||
get {
|
||||
return ResourceManager.GetString("NoIdentifierWithNameOnType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Operand type of '{0}' is not convertible to collection type of '{1}'.
|
||||
/// </summary>
|
||||
internal static string OperandNotConvertibleToCollectionType {
|
||||
get {
|
||||
return ResourceManager.GetString("OperandNotConvertibleToCollectionType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Operation not defined for type '{0}'.
|
||||
/// </summary>
|
||||
internal static string OperationNotDefinedForType {
|
||||
get {
|
||||
return ResourceManager.GetString("OperationNotDefinedForType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Operation '{0}' is not defined for types '{1}' and '{2}'.
|
||||
/// </summary>
|
||||
internal static string OperationNotDefinedForTypes {
|
||||
get {
|
||||
return ResourceManager.GetString("OperationNotDefinedForTypes", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reference to a non-shared member '{0}' requires an object reference.
|
||||
/// </summary>
|
||||
internal static string ReferenceToNonSharedMemberRequiresObjectReference {
|
||||
get {
|
||||
return ResourceManager.GetString("ReferenceToNonSharedMemberRequiresObjectReference", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Search argument type '{0}' is not a known collection type.
|
||||
/// </summary>
|
||||
internal static string SearchArgIsNotKnownCollectionType {
|
||||
get {
|
||||
return ResourceManager.GetString("SearchArgIsNotKnownCollectionType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Static member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead.
|
||||
/// </summary>
|
||||
internal static string StaticMemberCannotBeAccessedWithInstanceReference {
|
||||
get {
|
||||
return ResourceManager.GetString("StaticMemberCannotBeAccessedWithInstanceReference", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SyntaxError.
|
||||
/// </summary>
|
||||
internal static string SyntaxError {
|
||||
get {
|
||||
return ResourceManager.GetString("SyntaxError", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to '{0}' is a type and cannot be used as an expression.
|
||||
/// </summary>
|
||||
internal static string TypeCannotBeUsedAsAnExpression {
|
||||
get {
|
||||
return ResourceManager.GetString("TypeCannotBeUsedAsAnExpression", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Type '{0}' is not an array and does not have an indexer which accepts '{1}'.
|
||||
/// </summary>
|
||||
internal static string TypeNotArrayAndHasNoIndexerOfType {
|
||||
get {
|
||||
return ResourceManager.GetString("TypeNotArrayAndHasNoIndexerOfType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could find not function '{0}({1})'.
|
||||
/// </summary>
|
||||
internal static string UndefinedFunction {
|
||||
get {
|
||||
return ResourceManager.GetString("UndefinedFunction", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could find not function '{0}({1})' on type '{2}'.
|
||||
/// </summary>
|
||||
internal static string UndefinedFunctionOnType {
|
||||
get {
|
||||
return ResourceManager.GetString("UndefinedFunctionOnType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Unexpected character: {0}.
|
||||
/// </summary>
|
||||
internal static string UNEXPECTED_CHAR {
|
||||
get {
|
||||
return ResourceManager.GetString("UNEXPECTED_CHAR", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Unexpected end of file.
|
||||
/// </summary>
|
||||
internal static string UNEXPECTED_EOF {
|
||||
get {
|
||||
return ResourceManager.GetString("UNEXPECTED_EOF", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Unexpected token {0}; expected one of {1}.
|
||||
/// </summary>
|
||||
internal static string UNEXPECTED_TOKEN {
|
||||
get {
|
||||
return ResourceManager.GetString("UNEXPECTED_TOKEN", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to '{0}' not representable in type '{1}'.
|
||||
/// </summary>
|
||||
internal static string ValueNotRepresentableInType {
|
||||
get {
|
||||
return ResourceManager.GetString("ValueNotRepresentableInType", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,240 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="AmbiguousCallOfFunction" xml:space="preserve">
|
||||
<value>Ambiguous call of function '{0}({1})'</value>
|
||||
</data>
|
||||
<data name="AmbiguousOverloadedOperator" xml:space="preserve">
|
||||
<value>Ambiguous overloaded operator ('{2}') in types '{0}' and '{1}'</value>
|
||||
</data>
|
||||
<data name="ANALYSIS" xml:space="preserve">
|
||||
<value>Analysis: {0}</value>
|
||||
</data>
|
||||
<data name="ArrayIndexersMustBeOfType" xml:space="preserve">
|
||||
<value>Array indexers must be of type '{0}'</value>
|
||||
</data>
|
||||
<data name="CalcEngineDoesNotContainAtom" xml:space="preserve">
|
||||
<value>The calculation engine does not contain the atom '${0}'</value>
|
||||
</data>
|
||||
<data name="CannotConvertType" xml:space="preserve">
|
||||
<value>Cannot convert type '{0}' to '{1}'</value>
|
||||
</data>
|
||||
<data name="CannotConvertTypeToExpressionResult" xml:space="preserve">
|
||||
<value>Cannot convert type '{0}' to expression result of '{1}'</value>
|
||||
</data>
|
||||
<data name="CannotParseType" xml:space="preserve">
|
||||
<value>String was not recognized as a valid '{0}'</value>
|
||||
</data>
|
||||
<data name="CannotReferenceCalcEngineAtomWithoutCalcEngine" xml:space="preserve">
|
||||
<value>Cannot reference a calculation engine atom without a calculation engine</value>
|
||||
</data>
|
||||
<data name="CouldNotResolveType" xml:space="preserve">
|
||||
<value>Could not resolve type of '{0}'</value>
|
||||
</data>
|
||||
<data name="FirstArgNotBoolean" xml:space="preserve">
|
||||
<value>First argument does not evaluate to a Boolean</value>
|
||||
</data>
|
||||
<data name="FunctionHasNoReturnValue" xml:space="preserve">
|
||||
<value>Function '{0}' does not return a value</value>
|
||||
</data>
|
||||
<data name="IdentifierIsAmbiguous" xml:space="preserve">
|
||||
<value>The field/property/variable name '{0}' is ambiguous</value>
|
||||
</data>
|
||||
<data name="IdentifierIsAmbiguousOnType" xml:space="preserve">
|
||||
<value>The field/property/variable name '{0}' is ambiguous on type '{1}'</value>
|
||||
</data>
|
||||
<data name="INTERNAL_ERROR" xml:space="preserve">
|
||||
<value>Internal error: {0}</value>
|
||||
</data>
|
||||
<data name="INVALID_TOKEN" xml:space="preserve">
|
||||
<value>Invalid Token: {0}</value>
|
||||
</data>
|
||||
<data name="IO" xml:space="preserve">
|
||||
<value>I/O error: {0}</value>
|
||||
</data>
|
||||
<data name="LineColumn" xml:space="preserve">
|
||||
<value>Line: {0}, Column: {1}</value>
|
||||
</data>
|
||||
<data name="MultiArrayIndexNotSupported" xml:space="preserve">
|
||||
<value>Multiple array indexes are not supported</value>
|
||||
</data>
|
||||
<data name="NamespaceCannotBeUsedAsType" xml:space="preserve">
|
||||
<value>Namespace '{0}' cannot be used as a type</value>
|
||||
</data>
|
||||
<data name="NeitherArgIsConvertibleToTheOther" xml:space="preserve">
|
||||
<value>Cannot determine result type of expression; neither the True ({0}) or False ({1}) arguments are convertible to one another</value>
|
||||
</data>
|
||||
<data name="NoAccessibleMatches" xml:space="preserve">
|
||||
<value>Could not find any accessible matches for '{0}({1})'</value>
|
||||
</data>
|
||||
<data name="NoAccessibleMatchesOnType" xml:space="preserve">
|
||||
<value>Could not find any accessible matches for '{0}({1})' on type '{2}'</value>
|
||||
</data>
|
||||
<data name="NoIdentifierWithName" xml:space="preserve">
|
||||
<value>Could not find a field/property/variable with the name '{0}'</value>
|
||||
</data>
|
||||
<data name="NoIdentifierWithNameOnType" xml:space="preserve">
|
||||
<value>Could not find a field/property/variable with the name '{0}' on the type '{1}'</value>
|
||||
</data>
|
||||
<data name="OperandNotConvertibleToCollectionType" xml:space="preserve">
|
||||
<value>Operand type of '{0}' is not convertible to collection type of '{1}'</value>
|
||||
</data>
|
||||
<data name="OperationNotDefinedForType" xml:space="preserve">
|
||||
<value>Operation not defined for type '{0}'</value>
|
||||
</data>
|
||||
<data name="OperationNotDefinedForTypes" xml:space="preserve">
|
||||
<value>Operation '{0}' is not defined for types '{1}' and '{2}'</value>
|
||||
</data>
|
||||
<data name="ReferenceToNonSharedMemberRequiresObjectReference" xml:space="preserve">
|
||||
<value>Reference to a non-shared member '{0}' requires an object reference</value>
|
||||
</data>
|
||||
<data name="SearchArgIsNotKnownCollectionType" xml:space="preserve">
|
||||
<value>Search argument type '{0}' is not a known collection type</value>
|
||||
</data>
|
||||
<data name="StaticMemberCannotBeAccessedWithInstanceReference" xml:space="preserve">
|
||||
<value>Static member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</value>
|
||||
</data>
|
||||
<data name="SyntaxError" xml:space="preserve">
|
||||
<value>SyntaxError</value>
|
||||
</data>
|
||||
<data name="TypeCannotBeUsedAsAnExpression" xml:space="preserve">
|
||||
<value>'{0}' is a type and cannot be used as an expression</value>
|
||||
</data>
|
||||
<data name="TypeNotArrayAndHasNoIndexerOfType" xml:space="preserve">
|
||||
<value>Type '{0}' is not an array and does not have an indexer which accepts '{1}'</value>
|
||||
</data>
|
||||
<data name="UndefinedFunction" xml:space="preserve">
|
||||
<value>Could find not function '{0}({1})'</value>
|
||||
</data>
|
||||
<data name="UndefinedFunctionOnType" xml:space="preserve">
|
||||
<value>Could find not function '{0}({1})' on type '{2}'</value>
|
||||
</data>
|
||||
<data name="UNEXPECTED_CHAR" xml:space="preserve">
|
||||
<value>Unexpected character: {0}</value>
|
||||
</data>
|
||||
<data name="UNEXPECTED_EOF" xml:space="preserve">
|
||||
<value>Unexpected end of file</value>
|
||||
</data>
|
||||
<data name="UNEXPECTED_TOKEN" xml:space="preserve">
|
||||
<value>Unexpected token {0}; expected one of {1}</value>
|
||||
</data>
|
||||
<data name="ValueNotRepresentableInType" xml:space="preserve">
|
||||
<value>'{0}' not representable in type '{1}'</value>
|
||||
</data>
|
||||
</root>
|
File diff suppressed because it is too large
Load Diff
325
Resources/ElementNames.Designer.cs
generated
325
Resources/ElementNames.Designer.cs
generated
@@ -1,325 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Flee.Resources {
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class ElementNames {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal ElementNames() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.ElementNames", typeof(ElementNames).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to AndOrElement.
|
||||
/// </summary>
|
||||
internal static string AndOrElement {
|
||||
get {
|
||||
return ResourceManager.GetString("AndOrElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ArithmeticElement.
|
||||
/// </summary>
|
||||
internal static string ArithmeticElement {
|
||||
get {
|
||||
return ResourceManager.GetString("ArithmeticElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to BooleanLiteralElement.
|
||||
/// </summary>
|
||||
internal static string BooleanLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("BooleanLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to CalcEngineAtom.
|
||||
/// </summary>
|
||||
internal static string CalcEngineAtom {
|
||||
get {
|
||||
return ResourceManager.GetString("CalcEngineAtom", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to CastElement.
|
||||
/// </summary>
|
||||
internal static string CastElement {
|
||||
get {
|
||||
return ResourceManager.GetString("CastElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to CharLiteralElement.
|
||||
/// </summary>
|
||||
internal static string CharLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("CharLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to CompareElement.
|
||||
/// </summary>
|
||||
internal static string CompareElement {
|
||||
get {
|
||||
return ResourceManager.GetString("CompareElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ConditionalElement.
|
||||
/// </summary>
|
||||
internal static string ConditionalElement {
|
||||
get {
|
||||
return ResourceManager.GetString("ConditionalElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to DateTimeLiteralElement.
|
||||
/// </summary>
|
||||
internal static string DateTimeLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("DateTimeLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to DoubleLiteralElement.
|
||||
/// </summary>
|
||||
internal static string DoubleLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("DoubleLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ExpressionMemberElement.
|
||||
/// </summary>
|
||||
internal static string ExpressionMemberElement {
|
||||
get {
|
||||
return ResourceManager.GetString("ExpressionMemberElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to FunctionCallElement.
|
||||
/// </summary>
|
||||
internal static string FunctionCallElement {
|
||||
get {
|
||||
return ResourceManager.GetString("FunctionCallElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IdentifierElement.
|
||||
/// </summary>
|
||||
internal static string IdentifierElement {
|
||||
get {
|
||||
return ResourceManager.GetString("IdentifierElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IndexerElement.
|
||||
/// </summary>
|
||||
internal static string IndexerElement {
|
||||
get {
|
||||
return ResourceManager.GetString("IndexerElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InElement.
|
||||
/// </summary>
|
||||
internal static string InElement {
|
||||
get {
|
||||
return ResourceManager.GetString("InElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Int32Literal.
|
||||
/// </summary>
|
||||
internal static string Int32Literal {
|
||||
get {
|
||||
return ResourceManager.GetString("Int32Literal", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Int64LiteralElement.
|
||||
/// </summary>
|
||||
internal static string Int64LiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("Int64LiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InvocationListElement.
|
||||
/// </summary>
|
||||
internal static string InvocationListElement {
|
||||
get {
|
||||
return ResourceManager.GetString("InvocationListElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to NegateElement.
|
||||
/// </summary>
|
||||
internal static string NegateElement {
|
||||
get {
|
||||
return ResourceManager.GetString("NegateElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to NotElement.
|
||||
/// </summary>
|
||||
internal static string NotElement {
|
||||
get {
|
||||
return ResourceManager.GetString("NotElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to NullLiteralElement.
|
||||
/// </summary>
|
||||
internal static string NullLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("NullLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to RootExpressionElement.
|
||||
/// </summary>
|
||||
internal static string RootExpressionElement {
|
||||
get {
|
||||
return ResourceManager.GetString("RootExpressionElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ShiftElement.
|
||||
/// </summary>
|
||||
internal static string ShiftElement {
|
||||
get {
|
||||
return ResourceManager.GetString("ShiftElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SingleLiteralElement.
|
||||
/// </summary>
|
||||
internal static string SingleLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("SingleLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to StringLiteralElement.
|
||||
/// </summary>
|
||||
internal static string StringLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("StringLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to TimeSpanLiteralElement.
|
||||
/// </summary>
|
||||
internal static string TimeSpanLiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("TimeSpanLiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to UInt32LiteralElement.
|
||||
/// </summary>
|
||||
internal static string UInt32LiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("UInt32LiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to UInt64LiteralElement.
|
||||
/// </summary>
|
||||
internal static string UInt64LiteralElement {
|
||||
get {
|
||||
return ResourceManager.GetString("UInt64LiteralElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to XorElement.
|
||||
/// </summary>
|
||||
internal static string XorElement {
|
||||
get {
|
||||
return ResourceManager.GetString("XorElement", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,207 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="AndOrElement" xml:space="preserve">
|
||||
<value>AndOrElement</value>
|
||||
</data>
|
||||
<data name="ArithmeticElement" xml:space="preserve">
|
||||
<value>ArithmeticElement</value>
|
||||
</data>
|
||||
<data name="BooleanLiteralElement" xml:space="preserve">
|
||||
<value>BooleanLiteralElement</value>
|
||||
</data>
|
||||
<data name="CalcEngineAtom" xml:space="preserve">
|
||||
<value>CalcEngineAtom</value>
|
||||
</data>
|
||||
<data name="CastElement" xml:space="preserve">
|
||||
<value>CastElement</value>
|
||||
</data>
|
||||
<data name="CharLiteralElement" xml:space="preserve">
|
||||
<value>CharLiteralElement</value>
|
||||
</data>
|
||||
<data name="CompareElement" xml:space="preserve">
|
||||
<value>CompareElement</value>
|
||||
</data>
|
||||
<data name="ConditionalElement" xml:space="preserve">
|
||||
<value>ConditionalElement</value>
|
||||
</data>
|
||||
<data name="DateTimeLiteralElement" xml:space="preserve">
|
||||
<value>DateTimeLiteralElement</value>
|
||||
</data>
|
||||
<data name="DoubleLiteralElement" xml:space="preserve">
|
||||
<value>DoubleLiteralElement</value>
|
||||
</data>
|
||||
<data name="ExpressionMemberElement" xml:space="preserve">
|
||||
<value>ExpressionMemberElement</value>
|
||||
</data>
|
||||
<data name="FunctionCallElement" xml:space="preserve">
|
||||
<value>FunctionCallElement</value>
|
||||
</data>
|
||||
<data name="IdentifierElement" xml:space="preserve">
|
||||
<value>IdentifierElement</value>
|
||||
</data>
|
||||
<data name="IndexerElement" xml:space="preserve">
|
||||
<value>IndexerElement</value>
|
||||
</data>
|
||||
<data name="InElement" xml:space="preserve">
|
||||
<value>InElement</value>
|
||||
</data>
|
||||
<data name="Int32Literal" xml:space="preserve">
|
||||
<value>Int32Literal</value>
|
||||
</data>
|
||||
<data name="Int64LiteralElement" xml:space="preserve">
|
||||
<value>Int64LiteralElement</value>
|
||||
</data>
|
||||
<data name="InvocationListElement" xml:space="preserve">
|
||||
<value>InvocationListElement</value>
|
||||
</data>
|
||||
<data name="NegateElement" xml:space="preserve">
|
||||
<value>NegateElement</value>
|
||||
</data>
|
||||
<data name="NotElement" xml:space="preserve">
|
||||
<value>NotElement</value>
|
||||
</data>
|
||||
<data name="NullLiteralElement" xml:space="preserve">
|
||||
<value>NullLiteralElement</value>
|
||||
</data>
|
||||
<data name="RootExpressionElement" xml:space="preserve">
|
||||
<value>RootExpressionElement</value>
|
||||
</data>
|
||||
<data name="ShiftElement" xml:space="preserve">
|
||||
<value>ShiftElement</value>
|
||||
</data>
|
||||
<data name="SingleLiteralElement" xml:space="preserve">
|
||||
<value>SingleLiteralElement</value>
|
||||
</data>
|
||||
<data name="StringLiteralElement" xml:space="preserve">
|
||||
<value>StringLiteralElement</value>
|
||||
</data>
|
||||
<data name="TimeSpanLiteralElement" xml:space="preserve">
|
||||
<value>TimeSpanLiteralElement</value>
|
||||
</data>
|
||||
<data name="UInt32LiteralElement" xml:space="preserve">
|
||||
<value>UInt32LiteralElement</value>
|
||||
</data>
|
||||
<data name="UInt64LiteralElement" xml:space="preserve">
|
||||
<value>UInt64LiteralElement</value>
|
||||
</data>
|
||||
<data name="XorElement" xml:space="preserve">
|
||||
<value>XorElement</value>
|
||||
</data>
|
||||
</root>
|
@@ -1,59 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Resources;
|
||||
|
||||
namespace Flee.Resources
|
||||
{
|
||||
internal class FleeResourceManager
|
||||
{
|
||||
|
||||
private Dictionary<string, ResourceManager> MyResourceManagers;
|
||||
|
||||
private static FleeResourceManager OurInstance = new FleeResourceManager();
|
||||
private FleeResourceManager()
|
||||
{
|
||||
MyResourceManagers = new Dictionary<string, ResourceManager>(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
private ResourceManager GetResourceManager(string resourceFile)
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
ResourceManager rm = null;
|
||||
if (MyResourceManagers.TryGetValue(resourceFile, out rm) == false)
|
||||
{
|
||||
Type t = typeof(FleeResourceManager);
|
||||
rm = new ResourceManager(string.Format("{0}.{1}", t.Namespace, resourceFile), t.Assembly);
|
||||
MyResourceManagers.Add(resourceFile, rm);
|
||||
}
|
||||
return rm;
|
||||
}
|
||||
}
|
||||
|
||||
private string GetResourceString(string resourceFile, string key)
|
||||
{
|
||||
ResourceManager rm = this.GetResourceManager(resourceFile);
|
||||
return rm.GetString(key);
|
||||
}
|
||||
|
||||
public string GetCompileErrorString(string key)
|
||||
{
|
||||
return this.GetResourceString("CompileErrors", key);
|
||||
}
|
||||
|
||||
public string GetElementNameString(string key)
|
||||
{
|
||||
return this.GetResourceString("ElementNames", key);
|
||||
}
|
||||
|
||||
public string GetGeneralErrorString(string key)
|
||||
{
|
||||
return this.GetResourceString("GeneralErrors", key);
|
||||
}
|
||||
|
||||
public static FleeResourceManager Instance
|
||||
{
|
||||
get { return OurInstance; }
|
||||
}
|
||||
}
|
||||
}
|
154
Resources/GeneralErrors.Designer.cs
generated
154
Resources/GeneralErrors.Designer.cs
generated
@@ -1,154 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Flee.Resources {
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class GeneralErrors {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal GeneralErrors() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.GeneralErrors", typeof(GeneralErrors).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot determine type of new variable.
|
||||
/// </summary>
|
||||
internal static string CannotDetermineNewVariableType {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotDetermineNewVariableType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Could not find a public and static method '{0}' on type '{1}'.
|
||||
/// </summary>
|
||||
internal static string CouldNotFindPublicStaticMethodOnType {
|
||||
get {
|
||||
return ResourceManager.GetString("CouldNotFindPublicStaticMethodOnType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Invalid namespace name.
|
||||
/// </summary>
|
||||
internal static string InvalidNamespaceName {
|
||||
get {
|
||||
return ResourceManager.GetString("InvalidNamespaceName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to '{0}' is not a valid variable name.
|
||||
/// </summary>
|
||||
internal static string InvalidVariableName {
|
||||
get {
|
||||
return ResourceManager.GetString("InvalidVariableName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The type of the new owner is not assignable to the current owner type.
|
||||
/// </summary>
|
||||
internal static string NewOwnerTypeNotAssignableToCurrentOwner {
|
||||
get {
|
||||
return ResourceManager.GetString("NewOwnerTypeNotAssignableToCurrentOwner", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Only public and static methods can be imported.
|
||||
/// </summary>
|
||||
internal static string OnlyPublicStaticMethodsCanBeImported {
|
||||
get {
|
||||
return ResourceManager.GetString("OnlyPublicStaticMethodsCanBeImported", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Type '{0}' is not accessible to the expression.
|
||||
/// </summary>
|
||||
internal static string TypeNotAccessibleToExpression {
|
||||
get {
|
||||
return ResourceManager.GetString("TypeNotAccessibleToExpression", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Undefined variable '{0}'.
|
||||
/// </summary>
|
||||
internal static string UndefinedVariable {
|
||||
get {
|
||||
return ResourceManager.GetString("UndefinedVariable", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Value type of '{0}' is not assignable to required type of '{1}'.
|
||||
/// </summary>
|
||||
internal static string VariableValueNotAssignableToType {
|
||||
get {
|
||||
return ResourceManager.GetString("VariableValueNotAssignableToType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to A variable with name '{0}' is already defined.
|
||||
/// </summary>
|
||||
internal static string VariableWithNameAlreadyDefined {
|
||||
get {
|
||||
return ResourceManager.GetString("VariableWithNameAlreadyDefined", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,150 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="CannotDetermineNewVariableType" xml:space="preserve">
|
||||
<value>Cannot determine type of new variable</value>
|
||||
</data>
|
||||
<data name="CouldNotFindPublicStaticMethodOnType" xml:space="preserve">
|
||||
<value>Could not find a public and static method '{0}' on type '{1}'</value>
|
||||
</data>
|
||||
<data name="InvalidNamespaceName" xml:space="preserve">
|
||||
<value>Invalid namespace name</value>
|
||||
</data>
|
||||
<data name="InvalidVariableName" xml:space="preserve">
|
||||
<value>'{0}' is not a valid variable name</value>
|
||||
</data>
|
||||
<data name="NewOwnerTypeNotAssignableToCurrentOwner" xml:space="preserve">
|
||||
<value>The type of the new owner is not assignable to the current owner type</value>
|
||||
</data>
|
||||
<data name="OnlyPublicStaticMethodsCanBeImported" xml:space="preserve">
|
||||
<value>Only public and static methods can be imported</value>
|
||||
</data>
|
||||
<data name="TypeNotAccessibleToExpression" xml:space="preserve">
|
||||
<value>Type '{0}' is not accessible to the expression</value>
|
||||
</data>
|
||||
<data name="UndefinedVariable" xml:space="preserve">
|
||||
<value>Undefined variable '{0}'</value>
|
||||
</data>
|
||||
<data name="VariableValueNotAssignableToType" xml:space="preserve">
|
||||
<value>Value type of '{0}' is not assignable to required type of '{1}'</value>
|
||||
</data>
|
||||
<data name="VariableWithNameAlreadyDefined" xml:space="preserve">
|
||||
<value>A variable with name '{0}' is already defined</value>
|
||||
</data>
|
||||
</root>
|
@@ -1,78 +0,0 @@
|
||||
namespace Flee.Resources
|
||||
{
|
||||
/// <summary>
|
||||
/// Resource keys for compile error messages
|
||||
/// </summary>
|
||||
/// <remarks></remarks>
|
||||
internal class CompileErrorResourceKeys
|
||||
{
|
||||
|
||||
public const string CouldNotResolveType = "CouldNotResolveType";
|
||||
public const string CannotConvertType = "CannotConvertType";
|
||||
public const string FirstArgNotBoolean = "FirstArgNotBoolean";
|
||||
public const string NeitherArgIsConvertibleToTheOther = "NeitherArgIsConvertibleToTheOther";
|
||||
public const string ValueNotRepresentableInType = "ValueNotRepresentableInType";
|
||||
public const string SearchArgIsNotKnownCollectionType = "SearchArgIsNotKnownCollectionType";
|
||||
public const string OperandNotConvertibleToCollectionType = "OperandNotConvertibleToCollectionType";
|
||||
public const string TypeNotArrayAndHasNoIndexerOfType = "TypeNotArrayAndHasNoIndexerOfType";
|
||||
public const string ArrayIndexersMustBeOfType = "ArrayIndexersMustBeOfType";
|
||||
public const string AmbiguousCallOfFunction = "AmbiguousCallOfFunction";
|
||||
public const string NamespaceCannotBeUsedAsType = "NamespaceCannotBeUsedAsType";
|
||||
public const string TypeCannotBeUsedAsAnExpression = "TypeCannotBeUsedAsAnExpression";
|
||||
public const string StaticMemberCannotBeAccessedWithInstanceReference = "StaticMemberCannotBeAccessedWithInstanceReference";
|
||||
public const string ReferenceToNonSharedMemberRequiresObjectReference = "ReferenceToNonSharedMemberRequiresObjectReference";
|
||||
public const string FunctionHasNoReturnValue = "FunctionHasNoReturnValue";
|
||||
public const string OperationNotDefinedForType = "OperationNotDefinedForType";
|
||||
public const string OperationNotDefinedForTypes = "OperationNotDefinedForTypes";
|
||||
public const string CannotConvertTypeToExpressionResult = "CannotConvertTypeToExpressionResult";
|
||||
public const string AmbiguousOverloadedOperator = "AmbiguousOverloadedOperator";
|
||||
public const string NoIdentifierWithName = "NoIdentifierWithName";
|
||||
public const string NoIdentifierWithNameOnType = "NoIdentifierWithNameOnType";
|
||||
public const string IdentifierIsAmbiguous = "IdentifierIsAmbiguous";
|
||||
public const string IdentifierIsAmbiguousOnType = "IdentifierIsAmbiguousOnType";
|
||||
public const string CannotReferenceCalcEngineAtomWithoutCalcEngine = "CannotReferenceCalcEngineAtomWithoutCalcEngine";
|
||||
public const string CalcEngineDoesNotContainAtom = "CalcEngineDoesNotContainAtom";
|
||||
public const string UndefinedFunction = "UndefinedFunction";
|
||||
public const string UndefinedFunctionOnType = "UndefinedFunctionOnType";
|
||||
public const string NoAccessibleMatches = "NoAccessibleMatches";
|
||||
public const string NoAccessibleMatchesOnType = "NoAccessibleMatchesOnType";
|
||||
public const string CannotParseType = "CannotParseType";
|
||||
|
||||
public const string MultiArrayIndexNotSupported = "MultiArrayIndexNotSupported";
|
||||
// Grammatica
|
||||
public const string UnexpectedToken = "UNEXPECTED_TOKEN";
|
||||
public const string IO = "IO";
|
||||
public const string UnexpectedEof = "UNEXPECTED_EOF";
|
||||
public const string UnexpectedChar = "UNEXPECTED_CHAR";
|
||||
public const string InvalidToken = "INVALID_TOKEN";
|
||||
public const string Analysis = "ANALYSIS";
|
||||
|
||||
public const string LineColumn = "LineColumn";
|
||||
|
||||
public const string SyntaxError = "SyntaxError";
|
||||
|
||||
private CompileErrorResourceKeys()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
internal class GeneralErrorResourceKeys
|
||||
{
|
||||
|
||||
public const string TypeNotAccessibleToExpression = "TypeNotAccessibleToExpression";
|
||||
public const string VariableWithNameAlreadyDefined = "VariableWithNameAlreadyDefined";
|
||||
public const string UndefinedVariable = "UndefinedVariable";
|
||||
public const string InvalidVariableName = "InvalidVariableName";
|
||||
public const string CannotDetermineNewVariableType = "CannotDetermineNewVariableType";
|
||||
public const string VariableValueNotAssignableToType = "VariableValueNotAssignableToType";
|
||||
public const string CouldNotFindPublicStaticMethodOnType = "CouldNotFindPublicStaticMethodOnType";
|
||||
public const string OnlyPublicStaticMethodsCanBeImported = "OnlyPublicStaticMethodsCanBeImported";
|
||||
public const string InvalidNamespaceName = "InvalidNamespaceName";
|
||||
|
||||
public const string NewOwnerTypeNotAssignableToCurrentOwner = "NewOwnerTypeNotAssignableToCurrentOwner";
|
||||
|
||||
private GeneralErrorResourceKeys()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user