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 PatioInt32Const(PatioIntValue value) implements PatioOperandConst { public static PatioInt32Const of(int value) { return new PatioInt32Const(new PatioIntValueLiteral(value)); } @Override public PatioType type() { return PatioTypes.INT32; } }