org.scalafmt.internal
Calculates next State given split at tok.
Reconstructs path for all tokens and invokes callback for each token/split combination.