public string GetExpressionString(Scope s) { if (UnaryOperator != null) { return($"{UnaryOperator}{Reference.GetExpressionString(s)}"); } if (Embraced != null) { return($"({Embraced.GetExpressionString(s)})"); } if (BLiteral != null) { return(BLiteral.Value); } if (Statement != null) { return(Statement.GetValue(s).ToString()); } return(null); }
public string GetExpressionString(Scope s) { if (UnaryOperator != null) { return($"{UnaryOperator}{Reference.GetExpressionString(s)}"); } if (Embraced != null) { return($"({Embraced.GetExpressionString(s)})"); } if (Member != null) { return(s.RetrieveMember(Member.ProduceVarIdentifier()).ToString()); } if (Literal != null) { return(Literal.Value); } return(null); }