package jetbrains.mps.lang.scopes.runtime;

/*Generated by MPS */

import org.jetbrains.mps.openapi.model.SNode;
import java.util.Set;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.NotNull;

public class NamedElementsScope extends SimpleScope {
  public NamedElementsScope(Iterable<SNode> nodes) {
    super(nodes);
  }

  public NamedElementsScope(SNode node) {
    super(node);
  }

  public NamedElementsScope(Iterable<SNode> nodes, Set<SNode> deps) {
    super(nodes, deps);
  }

  public NamedElementsScope(SNode node, Set<SNode> deps) {
    super(node, deps);
  }

  @Nullable
  @Override
  public String getReferenceText(@NotNull SNode target) {
    // todo: is it right?
    return target.getName();
  }
}
