use of meghanada.reflect.MemberDescriptor in project meghanada-server by mopemope.
the class MemberCacheLoader method storeMembers.
private void storeMembers(final String fqcn, final List<MemberDescriptor> list) {
final CachedASMReflector reflector = CachedASMReflector.getInstance();
reflector.containsClassIndex(fqcn).map(wrapIO(index -> ProjectDatabaseHelper.saveMemberDescriptors(index.getRawDeclaration(), list))).orElseGet(() -> {
final String innerFQCN = ClassNameUtils.replaceInnerMark(fqcn);
reflector.containsClassIndex(innerFQCN).ifPresent(wrapIOConsumer(index -> ProjectDatabaseHelper.saveMemberDescriptors(index.getRawDeclaration(), list)));
return true;
});
}
Aggregations