Add persistance to Operator.Binary (#8826)

This commit is contained in:
Hubert Plociniczak 2024-01-23 10:43:26 +01:00 committed by GitHub
parent dfe867a9cd
commit 24007f1db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -167,6 +167,10 @@ recommended when making a change:
That way the same version of Enso will recognize its `.ir` files. Different
versions of Enso will realize that the files aren't in suitable form.
Every `Persistance` class has a unique identifier. In order to keep definitions
consistent one should not attempt to use smaller `id`s than previously assigned.
One should also not delete any `Persistance` classes.
## Loading the IR
Loading the IR is a multi-stage process that involves performing integrity

View File

@ -7,6 +7,7 @@ import java.util.UUID;
import org.enso.compiler.core.ir.expression.Application;
import org.enso.compiler.core.ir.expression.Case;
import org.enso.compiler.core.ir.expression.Foreign;
import org.enso.compiler.core.ir.expression.Operator;
import org.enso.compiler.core.ir.expression.warnings.Unused;
import org.enso.compiler.core.ir.module.scope.Definition;
import org.enso.compiler.core.ir.module.scope.Export;
@ -65,6 +66,7 @@ import scala.collection.immutable.Seq;
@Persistable(clazz = Unused.FunctionArgument.class, id = 787)
@Persistable(clazz = Warning.DuplicatedImport.class, id = 788)
@Persistable(clazz = Warning.WrongBuiltinMethod.class, id = 789)
@Persistable(clazz = Operator.Binary.class, id = 790)
public final class IrPersistance {
private IrPersistance() {}