some todo fixes
This commit is contained in:
@@ -354,12 +354,8 @@ public class StaticContext {
|
|||||||
};
|
};
|
||||||
Rule<JsNameRef> libraryObjectsHaveKotlinQualifier = new Rule<JsNameRef>() {
|
Rule<JsNameRef> libraryObjectsHaveKotlinQualifier = new Rule<JsNameRef>() {
|
||||||
|
|
||||||
//TODO: refactor by removing one annotation
|
|
||||||
@Override
|
@Override
|
||||||
public JsNameRef apply(@NotNull DeclarationDescriptor descriptor) {
|
public JsNameRef apply(@NotNull DeclarationDescriptor descriptor) {
|
||||||
if (getAnnotationByName(descriptor, AnnotationsUtils.LIBRARY_ANNOTATION_FQNAME) != null) {
|
|
||||||
return namer.kotlinObject();
|
|
||||||
}
|
|
||||||
if (getAnnotationByName(descriptor, AnnotationsUtils.LIBRARY_ANNOTATION_FQNAME) != null) {
|
if (getAnnotationByName(descriptor, AnnotationsUtils.LIBRARY_ANNOTATION_FQNAME) != null) {
|
||||||
return namer.kotlinObject();
|
return namer.kotlinObject();
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -16,7 +16,6 @@ public final class NamespaceInitializerTranslator extends AbstractInitializerTra
|
|||||||
@NotNull
|
@NotNull
|
||||||
private final NamespaceDescriptor namespace;
|
private final NamespaceDescriptor namespace;
|
||||||
|
|
||||||
//TODO: pass namespace descriptor here
|
|
||||||
public NamespaceInitializerTranslator(@NotNull NamespaceDescriptor namespace, @NotNull TranslationContext context) {
|
public NamespaceInitializerTranslator(@NotNull NamespaceDescriptor namespace, @NotNull TranslationContext context) {
|
||||||
super(context.getScopeForDescriptor(namespace).innerScope
|
super(context.getScopeForDescriptor(namespace).innerScope
|
||||||
("initializer " + namespace.getName()), context);
|
("initializer " + namespace.getName()), context);
|
||||||
|
|||||||
Reference in New Issue
Block a user