remove some refs to YStream
This commit is contained in:
parent
eed2b54d99
commit
151184a754
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue