ParsingEvent Class

Base class for parsing events.

public abstract class ParsingEvent

Constructors

NameDescription
ParsingEvent(Mark, Mark)Initializes a new instance of the ParsingEvent class.

ParsingEvent(Mark, Mark)

ParsingEvent.cs

Initializes a new instance of the ParsingEvent class.

protected ParsingEvent(Mark start, Mark end)

Parameters

start Mark
The start position of the event.
end Mark
The end position of the event.

Properties

NameDescription
EndGets the position in the input stream where the event ends.
NestingIncreaseGets a value indicating the variation of depth caused by this event. The value can be either -1, 0 or 1. For start events, it will be 1, for end events, it will be -1, and for the remaining events, it will be 0.
StartGets the position in the input stream where the event starts.

Gets the position in the input stream where the event ends.

public Mark End { get; }

Property value

Mark

NestingIncrease

Gets a value indicating the variation of depth caused by this event. The value can be either -1, 0 or 1. For start events, it will be 1, for end events, it will be -1, and for the remaining events, it will be 0.

public abstract int NestingIncrease { get; }

Property value

int

Gets the position in the input stream where the event starts.

public Mark Start { get; }

Property value

Mark