getLineNumberFromTokenPos method Null safety

int? getLineNumberFromTokenPos(
  1. int tokenPos
)

This function maps a token position to a line number. The VM considers the first line to be line 1.

Implementation

int? getLineNumberFromTokenPos(int tokenPos) => _tokenToLine[tokenPos];