Rename ConditionExpression => VariableExpression

This commit is contained in:
atlimit8
2017-04-11 01:26:38 -05:00
parent 1fa8286f1e
commit e73d3922dd
8 changed files with 18 additions and 18 deletions

View File

@@ -398,13 +398,13 @@ namespace OpenRA
return InvalidValueAction(value, fieldType, fieldName);
}
else if (fieldType == typeof(ConditionExpression))
else if (fieldType == typeof(VariableExpression))
{
if (value != null)
{
try
{
return new ConditionExpression(value);
return new VariableExpression(value);
}
catch (InvalidDataException e)
{

View File

@@ -260,7 +260,7 @@
<Compile Include="Primitives\float3.cs" />
<Compile Include="InstalledMods.cs" />
<Compile Include="CryptoUtil.cs" />
<Compile Include="Support\ConditionExpression.cs" />
<Compile Include="Support\VariableExpression.cs" />
<Compile Include="ExternalMods.cs" />
</ItemGroup>
<ItemGroup>

View File

@@ -18,7 +18,7 @@ using Expressions = System.Linq.Expressions;
namespace OpenRA.Support
{
public class ConditionExpression
public class VariableExpression
{
public readonly string Expression;
readonly HashSet<string> variables = new HashSet<string>();
@@ -525,7 +525,7 @@ namespace OpenRA.Support
}
}
public ConditionExpression(string expression)
public VariableExpression(string expression)
{
Expression = expression;
var tokens = new List<Token>();