public override Node VisitObjectLiteral(ECMAScriptParser.ObjectLiteralContext context) { var node = new ObjectExpression(context); if (context.propertyNameAndValueList() != null) { var propertyAssignments = context.propertyNameAndValueList().propertyAssignment(); node.Elements.AddRange(propertyAssignments.Select(Visit).Cast <Property>()); } return(node); }
public UstNode VisitObjectLiteral([NotNull] ECMAScriptParser.ObjectLiteralContext context) { return(VisitChildren(context)); }