@Nullable
 @Override
 public ClassDescriptor getClassResolvedFromSource(@NotNull FqName fqName) {
   return trace.get(FQNAME_TO_CLASS_DESCRIPTOR, fqName.toUnsafe());
 }
Example #2
0
 @Test
 public void safeUnsafe() {
   FqName fqName = new FqName("com.yandex");
   Assert.assertSame(fqName, fqName.toUnsafe().toSafe());
 }
Example #3
0
 @Nullable
 public static FqNameUnsafe getUnsafeFQName(@NotNull JetNamedDeclaration namedDeclaration) {
   FqName fqName = getFQName(namedDeclaration);
   return fqName != null ? fqName.toUnsafe() : null;
 }