private fun resetAndGetFollowElements( tokens: ObservableXtextTokenStream, strict: Boolean ): Collection<FollowElement?>? { val parser: CustomInternalN4JSParser = createParser() parser.setStrict(strict) tokens.reset() return doGetFollowElements(parser, tokens) }
Create a fresh parser instance and process the tokens for a second pass .