public override Lazy <object> VisitArrayLiteral(QuestScriptParser.ArrayLiteralContext context)
        {
            var resultingValue = new Lazy <object>(() =>
            {
                var list = new ArrayList();
                foreach (var el in context._elements)
                {
                    var value = el.Accept(this).GetValueOrLazyValue();
                    list.Add(value);
                }

                return(list);
            });

            return(resultingValue);
        }
Пример #2
0
 public override ObjectType VisitArrayLiteral(QuestScriptParser.ArrayLiteralContext context)
 {
     return(ObjectType.List);
 }