Skip to content

Commit 4df5b5d

Browse files
authored
1.9.2 - just fix
1 parent ecada05 commit 4df5b5d

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

SourceCode/ast/DdotExpression.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -8,25 +8,26 @@ namespace OwnLang.ast.lib
88
{
99
public class DdotExpression : Expression
1010
{
11-
private string valuet;
12-
private EnumValue value;
13-
private StringValue var;
11+
//private string valuet;
12+
private string value;
13+
private string var;
14+
private EnumValue evalue;
1415

15-
public DdotExpression(string value, StringValue var)
16+
public DdotExpression(string value, string var)
1617
{
17-
valuet = value;
18+
this.value = value;
1819
this.var = var;
1920
}
2021

2122
public Value eval()
2223
{
23-
value = new EnumValue(((EnumValue)Variables.get(valuet)).getAll());
24-
return value.get(var.asString());
24+
evalue = (EnumValue)Variables.get(value);// new EnumValue(((EnumValue)Variables.get(value)).getAll());
25+
return evalue.get(var);
2526
}
2627

2728
override public string ToString()
2829
{
29-
return value.asString();
30+
return value;
3031
}
3132
}
3233
}

0 commit comments

Comments
 (0)