TopDownAnalyzerForStandardLibrary.java 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
package org.jetbrains.jet.lang.resolve;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.JetSemanticServices;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.psi.JetNamedFunction;
import org.jetbrains.jet.lang.psi.JetNamespace;
import org.jetbrains.jet.lang.psi.JetProperty;

/**
 * @author svtk
 */
A
Andrey Breslav 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
//public class TopDownAnalyzerForStandardLibrary extends TopDownAnalyzer {
//
//    public TopDownAnalyzerForStandardLibrary(JetSemanticServices semanticServices, @NotNull BindingTrace bindingTrace) {
//        super(semanticServices, bindingTrace);
//    }
//
//    public void processStandardLibraryNamespace(@NotNull WritableScope outerScope, @NotNull NamespaceDescriptorImpl standardLibraryNamespace, @NotNull JetNamespace namespace) {
//        namespaceScopes.put(namespace, standardLibraryNamespace.getMemberScope());
//        namespaceDescriptors.put(namespace, standardLibraryNamespace);
//        TypeHierarchyResolver typeHierarchyResolver = new TypeHierarchyResolver(semanticServices, trace);
//        typeHierarchyResolver.process(outerScope, standardLibraryNamespace, namespace.getDeclarations());
//
//        DeclarationResolver declarationResolver = new DeclarationResolver(semanticServices, trace, typeHierarchyResolver);
//        declarationResolver.process();
//
//        new BodyResolver(semanticServices, trace, typeHierarchyResolver, declarationResolver).resolveBehaviorDeclarationBodies();
//    }
//
//    @Override
//    protected void checkProperty(JetProperty property, PropertyDescriptor propertyDescriptor, ClassDescriptor classDescriptor) {}
//
//
//    @Override
//    protected void checkFunction(JetNamedFunction function, FunctionDescriptor functionDescriptor, DeclarationDescriptor containingDescriptor) {}
//}