从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
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 */ 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); process(outerScope, standardLibraryNamespace, namespace.getDeclarations()); } @Override
protected void checkProperty(JetProperty property, PropertyDescriptor propertyDescriptor, ClassDescriptor classDescriptor) {}
@Override protected void checkFunctionCorrectness(JetNamedFunction function, FunctionDescriptor functionDescriptor, DeclarationDescriptor containingDescriptor) {} }