package scotch.compiler.syntax.value; import static scotch.compiler.intermediate.Intermediates.bigInt; import static scotch.compiler.syntax.type.Types.sum; import java.math.BigInteger; import me.qmx.jitescript.CodeBlock; import scotch.compiler.intermediate.IntermediateGenerator; import scotch.compiler.intermediate.IntermediateValue; import scotch.compiler.text.SourceLocation; public class BigIntLiteral extends LiteralValue<BigInteger> { public BigIntLiteral(SourceLocation sourceLocation, BigInteger value) { super(sourceLocation, value, sum("scotch.data.bigint.BigInt")); } @Override public IntermediateValue generateIntermediateCode(IntermediateGenerator state) { return bigInt(value); } @Override protected CodeBlock loadValue() { throw new UnsupportedOperationException(); } }