/// <summary>Sets initializer object.</summary> /// <remarks> /// Sets initializer object. Rhino supports an experimental syntax /// of the form /// <code>new expr [ ( arglist ) ] [initializer]</code> /// , /// in which initializer is an object literal that is used to set /// additional properties on the newly-created /// <code>expr</code> /// object. /// </remarks> /// <param name="initializer"> /// extra initializer object. /// Can be /// <code>null</code> /// . /// </param> public virtual void SetInitializer(ObjectLiteral initializer) { this.initializer = initializer; if (initializer != null) { initializer.SetParent(this); } }