startIndex property

int startIndex
getter/setter pair

The current token's starting index into the character stream. Shared across DFA to ATN simulation in case the ATN fails and the DFA did not have a previous accept state. In this case, we use the ATN-generated exception object.

Implementation

int startIndex = -1;