package scotch.compiler.syntax.reference;
import static lombok.AccessLevel.PACKAGE;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import scotch.symbol.Symbol;
@AllArgsConstructor(access = PACKAGE)
@EqualsAndHashCode(callSuper = false)
@ToString
public class ValueReference extends DefinitionReference {
private final Symbol symbol;
public String getMemberName() {
return symbol.getSimpleName();
}
public String getName() {
return symbol.getSimpleName();
}
public Symbol getSymbol() {
return symbol;
}
}