getInputIndex from TerminalSymbolNode and TokenSymbolNode removed.