Module aya.base

Class TermComparator

java.lang.Object
org.aya.tyck.unify.TermComparator
Direct Known Subclasses:
Unifier

public abstract sealed class TermComparator extends Object permits Unifier
Bidirectional unification of terms, with abstract solveMeta(org.aya.core.term.Term, org.aya.tyck.unify.TermComparator.Sub, org.aya.tyck.unify.TermComparator.Sub, org.aya.core.term.MetaTerm). This class is not called Comparator because there is already Comparator.
See Also:
  • Field Details

    • traceBuilder

      @Nullable protected final Trace.Builder traceBuilder
    • state

      @NotNull protected final @NotNull TyckState state
    • reporter

      @NotNull protected final @NotNull org.aya.util.reporter.Reporter reporter
    • pos

      @NotNull protected final @NotNull org.aya.util.error.SourcePos pos
    • cmp

      @NotNull protected final @NotNull org.aya.util.Ordering cmp
    • ctx

      @NotNull protected final @NotNull LocalCtx ctx
  • Constructor Details

    • TermComparator

      public TermComparator(@Nullable Trace.Builder traceBuilder, @NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.util.Ordering cmp, @NotNull @NotNull LocalCtx ctx)
  • Method Details