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