use of com.intellij.psi.impl.source.text.BlockSupportImpl in project kotlin by JetBrains.
the class KtParsingTestCase method ensureCorrectReparse.
public static void ensureCorrectReparse(@NotNull PsiFile file) {
String psiToStringDefault = DebugUtil.psiToString(file, false, false);
String fileText = file.getText();
DiffLog diffLog = (new BlockSupportImpl(file.getProject())).reparseRange(file, file.getNode(), TextRange.allOf(fileText), fileText, new EmptyProgressIndicator(), fileText);
diffLog.performActualPsiChange(file);
TestCase.assertEquals(psiToStringDefault, DebugUtil.psiToString(file, false, false));
}
use of com.intellij.psi.impl.source.text.BlockSupportImpl in project intellij-community by JetBrains.
the class ParsingTestCase method ensureCorrectReparse.
public static void ensureCorrectReparse(@NotNull final PsiFile file) {
final String psiToStringDefault = DebugUtil.psiToString(file, false, false);
final String fileText = file.getText();
final DiffLog diffLog = new BlockSupportImpl(file.getProject()).reparseRange(file, file.getNode(), TextRange.allOf(fileText), fileText, new EmptyProgressIndicator(), fileText);
diffLog.performActualPsiChange(file);
TestCase.assertEquals(psiToStringDefault, DebugUtil.psiToString(file, false, false));
}
Aggregations