use of ool.intellij.plugin.psi.reference.innerjs.SimplifiedClassNameResolver in project oxy-template-support-plugin by mutant-industries.
the class ParamSuggestionProvider method compute.
@Nullable
@Override
public Result<MacroParamSuggestionSet> compute() {
MacroParamSuggestionSet macroParamSuggestions = getMacroParamSuggestions();
Set<PsiElement> cacheDependencies = new HashSet<>();
for (MacroParamDescriptor descriptor : macroParamSuggestions) {
if (descriptor.getType() == null) {
continue;
}
SimplifiedClassNameResolver simplifiedClassNameResolver = new SimplifiedClassNameResolver(macro.getContainingFile());
descriptor.getType().accept(simplifiedClassNameResolver);
cacheDependencies.addAll(simplifiedClassNameResolver.getResolvedClassList());
}
cacheDependencies.addAll(this.cacheDependencies);
return Result.create(macroParamSuggestions, cacheDependencies);
}
Aggregations