Checks whether a token has a valid source range.
Chevrotain uses negative offsets for virtual tokens such as EOF and tokens inserted during error recovery. Older versions used NaN for the same purpose, so both forms need to be rejected here.
NaN
Checks whether a token has a valid source range.
Chevrotain uses negative offsets for virtual tokens such as EOF and tokens inserted during error recovery. Older versions used
NaNfor the same purpose, so both forms need to be rejected here.