That's not quite enough: 

For an `unexpected end of input` the token will be (the number) `1`

For an `unexpected OUTDENT` things get a bit convoluted. The OUTDENT tokens locationData does not necessarily point immediately before / at the actual outdented code (as it should). It contains preceding blank lines and sometimes ends on the line above the code.