// reads a collection initialization component of a complex value private IStonCollectionInit ReadCollectionInit(StonTokenReader reader, bool preStarted = false) { // just a sequence of entities if (!preStarted) { reader.ExpectAndSkip(StonChartype.CollectionInitOpen); // the opening token might have been read earlier when reading a bare type definition } IEnumerable <IStonEntity> entities = ReadSequence(reader, ReadEntity, StonChartype.CollectionInitClose); return(ElementFactory.CreateCollectionInit(entities)); }