package jetbrains.mps.kotlin.behavior;

/*Generated by MPS */

import org.jetbrains.annotations.NotNull;
import jetbrains.mps.internal.collections.runtime.Sequence;

/**
 * Simple receiver for a function call. It refers to a single type, meaning there is no ambiguity for scopes
 */
public class InstanceReceiver implements MemberReceiver {
  private final TypeReference myReference;

  /**
   * Creates a receiver for a function call.
   * 
   * @param reference reference to the type
   */
  public InstanceReceiver(@NotNull TypeReference reference) {
    myReference = reference;
  }

  public Iterable<TypeReference> getTypeReferences() {
    return Sequence.<TypeReference>singleton(this.myReference);
  }
}
