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); }
public override ObjectType VisitArrayLiteral(QuestScriptParser.ArrayLiteralContext context) { return(ObjectType.List); }