package scotch.compiler.syntax.reference;
import static lombok.AccessLevel.PACKAGE;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
@AllArgsConstructor(access = PACKAGE)
@EqualsAndHashCode(callSuper = false)
@ToString
public class ModuleReference extends DefinitionReference {
@Getter
private final String name;
public boolean is(String otherName) {
return Objects.equals(name, otherName);
}
}