org.jetbrains.jet.lang.resolve.scopes
Class JetScopeUtils

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.scopes.JetScopeUtils

public final class JetScopeUtils
extends java.lang.Object


Method Summary
static java.util.Collection<CallableDescriptor> getAllExtensions(JetScope scope)
          Get all extension descriptors among visible descriptors for current scope.
static java.util.List<ReceiverValue> getImplicitReceiversHierarchyValues(JetScope scope)
           
static JetScope getPropertyDeclarationInnerScope(PropertyDescriptor propertyDescriptor, JetScope outerScope, java.util.List<? extends TypeParameterDescriptor> typeParameters, ReceiverParameterDescriptor receiver, BindingTrace trace)
           
static JetScope getPropertyDeclarationInnerScopeForInitializer(JetScope outerScope, java.util.List<? extends TypeParameterDescriptor> typeParameters, ReceiverParameterDescriptor receiver, BindingTrace trace)
           
static JetScope makeScopeForPropertyAccessor(PropertyDescriptor propertyDescriptor, JetScope parentScope, BindingTrace trace)
           
static java.lang.String printStructure(JetScope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImplicitReceiversHierarchyValues

public static java.util.List<ReceiverValue> getImplicitReceiversHierarchyValues(@NotNull
                                                                                JetScope scope)

getAllExtensions

public static java.util.Collection<CallableDescriptor> getAllExtensions(@NotNull
                                                                        JetScope scope)
Get all extension descriptors among visible descriptors for current scope.

Parameters:
scope - Scope for query extensions.
Returns:
extension descriptors.

makeScopeForPropertyAccessor

public static JetScope makeScopeForPropertyAccessor(@NotNull
                                                    PropertyDescriptor propertyDescriptor,
                                                    @NotNull
                                                    JetScope parentScope,
                                                    @NotNull
                                                    BindingTrace trace)

getPropertyDeclarationInnerScope

public static JetScope getPropertyDeclarationInnerScope(@NotNull
                                                        PropertyDescriptor propertyDescriptor,
                                                        @NotNull
                                                        JetScope outerScope,
                                                        @NotNull
                                                        java.util.List<? extends TypeParameterDescriptor> typeParameters,
                                                        @Nullable
                                                        ReceiverParameterDescriptor receiver,
                                                        BindingTrace trace)

getPropertyDeclarationInnerScopeForInitializer

public static JetScope getPropertyDeclarationInnerScopeForInitializer(@NotNull
                                                                      JetScope outerScope,
                                                                      @NotNull
                                                                      java.util.List<? extends TypeParameterDescriptor> typeParameters,
                                                                      @Nullable
                                                                      ReceiverParameterDescriptor receiver,
                                                                      BindingTrace trace)

printStructure

@TestOnly
@NotNull
public static java.lang.String printStructure(@Nullable
                                                               JetScope scope)