use of org.jetbrains.kotlin.psi.KtTreeVisitorVoid in project kotlin by JetBrains.
the class AbstractPsiCheckerTest method checkResolveToDescriptor.
void checkResolveToDescriptor() {
KtFile file = (KtFile) myFixture.getFile();
file.accept(new KtTreeVisitorVoid() {
@Override
public void visitDeclaration(@NotNull KtDeclaration dcl) {
if (areDescriptorsCreatedForDeclaration(dcl)) {
// check for exceptions
ResolutionUtils.resolveToDescriptor(dcl, BodyResolveMode.FULL);
}
dcl.acceptChildren(this, null);
}
});
}
Aggregations