Merge pull request #178 from Herringway/remove-ystream-refs
remove some refs to YStream
This commit is contained in:
commit
93cdaa90dc
|
@ -325,7 +325,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));
|
||||||
|
@ -343,7 +343,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