With reference to the class that implements the interface (ITranslationProviderLanguageDirection), in a simple translation provider...
Question 1. How can I get hold of the TranslationUnits that are Previsous and Next to the currently selected TranslationUnit?
Question 2. Is it possible to get hold of the complete TranslationUnits <T> in the file so that I can select the TranslationUnits that are directly before and after the currently selected TranslationUnit?
Note: I have seen that there are references to the previous TranslationUnits from the interface implementation, as follows, but this is not enough for the implementation requirements that I need.
public ImportResult[] AddOrUpdateTranslationUnitsMasked(TranslationUnit[] translationUnits, int[] previousTranslationHashes, ImportSettings settings, bool[] mask)
public ImportResult[] AddOrUpdateTranslationUnits(TranslationUnit[] translationUnits, int[] previousTranslationHashes, ImportSettings settings)