示例#1
0
        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);
        }
示例#2
0
文件: Call.cs 项目: hwdef/feel-csharp
        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);
        }