You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really what I want to achieve is to check the next event so that I can determine a sequence, so that I can avoid consuming DocumentEnd unless it is followed by a DocumentStart event.
I agree that the documentation is not very strict, but the behavior seems correct. It is not very clear what you are trying to achieve. It seems that you would want to peek on the next two events. I am correct ?
Peak nomenclature and comment indicates that it should return the next event without consuming it.
Actual behaviour is to return the current event without consuming it.
YamlDotNet/YamlDotNet/Core/ParserExtensions.cs
Lines 87 to 99 in 2c6d522
Accept indicates it checks the current event.
YamlDotNet/YamlDotNet/Core/ParserExtensions.cs
Lines 52 to 67 in 2c6d522
This is from master currently.
Really what I want to achieve is to check the next event so that I can determine a sequence, so that I can avoid consuming DocumentEnd unless it is followed by a DocumentStart event.
The text was updated successfully, but these errors were encountered: