Beispiel #1
0
        public override object VisitProtocolSubStatement(ProtocolSubStatementContext context)
        {
            var obj    = "";
            var extend = (new List <string>());

            foreach (var item in context.protocolSupportStatement())
            {
                if (item.GetChild(0).GetType() == typeof(IncludeStatementContext))
                {
                    var r = ((string)Visit(item));
                    extend.Append(r);
                }
                else
                {
                    obj += Visit(item);
                }
            }
            return(new Result(extend, obj));
        }
Beispiel #2
0
        public override object VisitProtocolSubStatement(ProtocolSubStatementContext context)
        {
            var obj    = "";
            var extend = (new list <string>());

            foreach (var item in context.protocolSupportStatement())
            {
                if (item.GetChild(0).GetType() == typeof(IncludeStatementContext))
                {
                    var r = (string)(Visit(item));
                    extend += r;
                }
                else
                {
                    obj += Visit(item);
                }
            }
            return(new Result()
            {
                text = obj, data = extend
            });
        }