mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: rename
This commit is contained in:
+3
-3
@@ -39,7 +39,7 @@ enum CompilerHierarchySearchType {
|
||||
}
|
||||
|
||||
@Override
|
||||
Object[] convertIdToSearchableArray(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator) {
|
||||
Object[] convertToIds(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator) {
|
||||
return lightRef.stream().map(r -> byteArrayEnumerator.getName(((LightRef.LightClassHierarchyElementDef)r).getName())).toArray(String[]::new);
|
||||
}
|
||||
},
|
||||
@@ -58,7 +58,7 @@ enum CompilerHierarchySearchType {
|
||||
}
|
||||
|
||||
@Override
|
||||
Object[] convertIdToSearchableArray(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator) {
|
||||
Object[] convertToIds(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator) {
|
||||
return lightRef.stream().map(r -> ((LightRef.LightFunExprDef) r).getId()).toArray(Integer[]::new);
|
||||
}
|
||||
};
|
||||
@@ -70,5 +70,5 @@ enum CompilerHierarchySearchType {
|
||||
|
||||
abstract Class<? extends LightRef> getRequiredClass(LanguageLightRefAdapter adapter);
|
||||
|
||||
abstract Object[] convertIdToSearchableArray(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator);
|
||||
abstract Object[] convertToIds(Collection<LightRef> lightRef, ByteArrayEnumerator byteArrayEnumerator);
|
||||
}
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ class CompilerReferenceReader {
|
||||
}
|
||||
})
|
||||
.filter(Objects::nonNull)
|
||||
.collect(groupingBy(x -> x.containingFile, mapping(x -> x.def, collectingAndThen(toList(), l -> searchType.convertIdToSearchableArray(l, myIndex.getByteSeqEum())))));
|
||||
.collect(groupingBy(x -> x.containingFile, mapping(x -> x.def, collectingAndThen(toList(), l -> searchType.convertToIds(l, myIndex.getByteSeqEum())))));
|
||||
}
|
||||
|
||||
return candidatesPerFile.isEmpty() ? Collections.emptyMap() : candidatesPerFile;
|
||||
|
||||
Reference in New Issue
Block a user