remove some refs to YStream

This commit is contained in:
Cameron Ross 2018-07-05 18:45:19 -03:00
parent eed2b54d99
commit 151184a754
No known key found for this signature in database
GPG key ID: 777897D98DC91C54

View file

@ -315,7 +315,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
void expectStreamStart() @safe void expectStreamStart() @safe
{ {
enforce(eventTypeIs(EventID.StreamStart), enforce(eventTypeIs(EventID.StreamStart),
new EmitterException("Expected YStreamStart, but got " ~ event_.idString)); new EmitterException("Expected StreamStart, but got " ~ event_.idString));
writeStreamStart(); writeStreamStart();
nextExpected(&expectDocumentStart!(Yes.first)); nextExpected(&expectDocumentStart!(Yes.first));
@ -333,7 +333,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
void expectDocumentStart(Flag!"first" first)() @safe void expectDocumentStart(Flag!"first" first)() @safe
{ {
enforce(eventTypeIs(EventID.DocumentStart) || eventTypeIs(EventID.StreamEnd), enforce(eventTypeIs(EventID.DocumentStart) || eventTypeIs(EventID.StreamEnd),
new EmitterException("Expected DocumentStart or YStreamEnd, but got " new EmitterException("Expected DocumentStart or StreamEnd, but got "
~ event_.idString)); ~ event_.idString));
if(event_.id == EventID.DocumentStart) if(event_.id == EventID.DocumentStart)