Skip to content

Commit 3fe41d5

Browse files
authored
Merge pull request #29 from unv-unv/compilation-fix
Fixing PythonSpellcheckerDictionaryGenerator compilation after platform refactoring
2 parents c99e747 + 0130999 commit 3fe41d5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

python-spellchecker/src/main/java/consulo/python/spellchecker/PythonSpellcheckerDictionaryGenerator.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import consulo.language.psi.PsiManager;
2626
import consulo.language.psi.util.PsiTreeUtil;
2727
import consulo.language.spellcheker.tokenizer.splitter.IdentifierTokenSplitter;
28+
import consulo.language.spellcheker.tokenizer.splitter.SplitContext;
2829
import consulo.project.Project;
2930
import consulo.virtualFileSystem.VirtualFile;
3031

@@ -43,12 +44,14 @@ protected void processFolder(Set<String> seenNames, PsiManager manager, VirtualF
4344
if (!myExcludedFolders.contains(folder)) {
4445
String name = folder.getName();
4546
IdentifierTokenSplitter.getInstance().split(
46-
name,
47-
TextRange.allOf(name),
48-
textRange -> {
49-
String word = textRange.substring(name);
50-
addSeenWord(seenNames, word, Language.ANY);
51-
}
47+
SplitContext.of(
48+
name,
49+
textRange -> {
50+
String word = textRange.substring(name);
51+
addSeenWord(seenNames, word, Language.ANY);
52+
}
53+
),
54+
TextRange.allOf(name)
5255
);
5356
}
5457
super.processFolder(seenNames, manager, folder);

0 commit comments

Comments
 (0)