mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
let java ast based indices use content hashes
GitOrigin-RevId: 2c34d3de40b72d84c06b9417d55cee6612b7179c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
abf0e32a0c
commit
30c40fc890
@@ -197,5 +197,7 @@ class JavaSimplePropertyIndex : FileBasedIndexExtension<Int, PropertyIndexValue>
|
||||
|
||||
override fun dependsOnFileContent(): Boolean = true
|
||||
|
||||
override fun getVersion(): Int = 1
|
||||
override fun getVersion(): Int = 2
|
||||
|
||||
override fun hasSnapshotMapping(): Boolean = true
|
||||
}
|
||||
@@ -95,7 +95,12 @@ public class JavaBinaryPlusExpressionIndex extends FileBasedIndexExtension<Boole
|
||||
|
||||
@Override
|
||||
public int getVersion() {
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSnapshotMapping() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -353,7 +353,7 @@ public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension<Funct
|
||||
|
||||
@Override
|
||||
public int getVersion() {
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -362,6 +362,11 @@ public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension<Funct
|
||||
return INDEX_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSnapshotMapping() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public DataIndexer<FunctionalExpressionKey, Map<Integer, FunExprOccurrence>, FileContent> getIndexer() {
|
||||
|
||||
@@ -4,9 +4,7 @@ package com.intellij.psi.impl.search;
|
||||
import com.intellij.ide.highlighter.JavaFileType;
|
||||
import com.intellij.lang.LighterAST;
|
||||
import com.intellij.lang.LighterASTNode;
|
||||
import com.intellij.lang.ParserDefinition;
|
||||
import com.intellij.lang.java.JavaParserDefinition;
|
||||
import com.intellij.lang.java.lexer.JavaLexer;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
@@ -193,7 +191,7 @@ public class JavaNullMethodArgumentIndex extends ScalarIndexExtension<JavaNullMe
|
||||
|
||||
@Override
|
||||
public int getVersion() {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -212,6 +210,11 @@ public class JavaNullMethodArgumentIndex extends ScalarIndexExtension<JavaNullMe
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSnapshotMapping() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static final class MethodCallData {
|
||||
@NotNull
|
||||
private final String myMethodName;
|
||||
|
||||
Reference in New Issue
Block a user