Module aya.base

Class AbstractTycker

java.lang.Object
org.aya.tyck.tycker.AbstractTycker
All Implemented Interfaces:
Contextful, Problematic, Stateful
Direct Known Subclasses:
ExprTycker, TermComparator

public abstract sealed class AbstractTycker extends Object implements Stateful, Contextful, Problematic permits ExprTycker, TermComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @NotNull org.aya.util.reporter.Reporter
     
    final @NotNull TyckState
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractTycker(@NotNull TyckState state, @NotNull org.aya.syntax.ref.LocalCtx ctx, @NotNull org.aya.util.reporter.Reporter reporter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    lazyJdg(@NotNull org.aya.syntax.core.term.Term wellTyped)
     
    @NotNull org.aya.syntax.ref.LocalCtx
     
    @NotNull org.aya.syntax.ref.LocalVar
    putIndex(@NotNull org.aya.generic.NameGenerator nameGen, @NotNull org.aya.syntax.core.term.Term type)
     
    @NotNull org.aya.util.reporter.Reporter
     
    @NotNull org.aya.syntax.ref.LocalCtx
    setLocalCtx(@NotNull org.aya.syntax.ref.LocalCtx ctx)
    Update localCtx with the given one
    @NotNull TyckState
     
    kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.core.term.Param>>
    zonk(kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.core.term.Param>> tele)
     
    @NotNull org.aya.syntax.core.term.Term
    zonk(org.aya.syntax.core.term.Term t)
     
    @NotNull Jdg
    zonk(@NotNull Jdg result)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aya.tyck.tycker.Contextful

    freshMeta, generatePi, mockTerm, subscoped, with

    Methods inherited from interface org.aya.tyck.tycker.Problematic

    fail, fail, fail

    Methods inherited from interface org.aya.tyck.tycker.Stateful

    freezeHoles, solve, whnf
  • Field Details

    • state

      @NotNull public final @NotNull TyckState state
    • reporter

      @NotNull public final @NotNull org.aya.util.reporter.Reporter reporter
  • Constructor Details

    • AbstractTycker

      protected AbstractTycker(@NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.syntax.ref.LocalCtx ctx, @NotNull @NotNull org.aya.util.reporter.Reporter reporter)
  • Method Details

    • setLocalCtx

      @NotNull public @NotNull org.aya.syntax.ref.LocalCtx setLocalCtx(@NotNull @NotNull org.aya.syntax.ref.LocalCtx ctx)
      Description copied from interface: Contextful
      Update localCtx with the given one
      Specified by:
      setLocalCtx in interface Contextful
      Parameters:
      ctx - new LocalCtx
      Returns:
      old context
    • localCtx

      @NotNull public @NotNull org.aya.syntax.ref.LocalCtx localCtx()
      Specified by:
      localCtx in interface Contextful
    • state

      @NotNull public @NotNull TyckState state()
      Specified by:
      state in interface Stateful
    • reporter

      @NotNull public @NotNull org.aya.util.reporter.Reporter reporter()
      Specified by:
      reporter in interface Problematic
    • lazyJdg

      @NotNull public Jdg.Lazy lazyJdg(@NotNull @NotNull org.aya.syntax.core.term.Term wellTyped)
    • putIndex

      @NotNull public @NotNull org.aya.syntax.ref.LocalVar putIndex(@NotNull @NotNull org.aya.generic.NameGenerator nameGen, @NotNull @NotNull org.aya.syntax.core.term.Term type)
    • zonk

      @NotNull public @NotNull org.aya.syntax.core.term.Term zonk(org.aya.syntax.core.term.Term t)
    • zonk

      public kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.core.term.Param>> zonk(kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.core.term.Param>> tele)
    • zonk

      @NotNull public @NotNull Jdg zonk(@NotNull @NotNull Jdg result)