some todo fixes

This commit is contained in:
Pavel Talanov
2012-02-03 16:40:31 +04:00
parent 3b9a20ba89
commit ad281a29bb
2 changed files with 0 additions and 5 deletions
@@ -354,12 +354,8 @@ public class StaticContext {
};
Rule<JsNameRef> libraryObjectsHaveKotlinQualifier = new Rule<JsNameRef>() {
//TODO: refactor by removing one annotation
@Override
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) {
return namer.kotlinObject();
}
@@ -16,7 +16,6 @@ public final class NamespaceInitializerTranslator extends AbstractInitializerTra
@NotNull
private final NamespaceDescriptor namespace;
//TODO: pass namespace descriptor here
public NamespaceInitializerTranslator(@NotNull NamespaceDescriptor namespace, @NotNull TranslationContext context) {
super(context.getScopeForDescriptor(namespace).innerScope
("initializer " + namespace.getName()), context);