package org.shedlang.compiler.patio.operands; import org.shedlang.compiler.patio.types.PatioType; import org.shedlang.compiler.patio.types.PatioTypes; import org.shedlang.compiler.patio.values.PatioIntValue; import org.shedlang.compiler.patio.values.PatioIntValueLiteral; public record PatioIntConst(PatioIntValue value) implements PatioOperandConst { public static PatioIntConst of(int value) { return new PatioIntConst(new PatioIntValueLiteral(value)); } @Override public PatioType type() { return PatioTypes.INT; } }