File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/io/runescript/plugin/ide/inspections Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.intellij.openapi.module.ModuleUtilCore
8
8
import com.intellij.openapi.project.guessModuleDir
9
9
import com.intellij.psi.PsiFile
10
10
import io.runescript.plugin.ide.config.RsConfig
11
+ import io.runescript.plugin.lang.psi.type.RsPrimitiveType
11
12
import io.runescript.plugin.symbollang.psi.RsSymFile
12
13
13
14
class RuneScriptInvalidSymbolFileInspection : LocalInspectionTool () {
@@ -25,7 +26,7 @@ class RuneScriptInvalidSymbolFileInspection : LocalInspectionTool() {
25
26
}
26
27
val name = file.containingFile.name
27
28
val typeName = name.substring(0 , name.indexOf(' .' ))
28
- if (typeName !in RsConfig .getPrimitiveTypes( null ) ) {
29
+ if (RsPrimitiveType .lookupOrNull( typeName) == null ) {
29
30
return arrayOf(
30
31
manager.createProblemDescriptor(
31
32
file,
You can’t perform that action at this time.
0 commit comments