File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . Linq ;
44using 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}
You can’t perform that action at this time.
0 commit comments