public override object VisitListAssign([NotNull] ListAssignContext context) { var obj = ""; obj += "{"; for (int i = 0; i < context.expression().Length; i++) { var r = (Result)Visit(context.expression(i)); if (i == 0) { obj += r.text; } else { obj += "," + r.text; } } obj += "}"; return(obj); }
public override object VisitListAssign(ListAssignContext context) { var obj = ""; obj += "{"; foreach (var i in range(0, context.expression().Length - 1, 1, true, true)) { var r = (Result)(Visit(context.expression(i))); if (i == 0) { obj += r.text; } else { obj += "," + r.text; } } obj += "}"; return(obj); }