java.lang.Object
org.aya.tyck.tycker.AbstractTycker
org.aya.tyck.ExprTycker
- All Implemented Interfaces:
Contextful,Problematic,Stateful,Unifiable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @NotNull kala.collection.mutable.MutableTreeSet<org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr.WithTerm>> Fields inherited from class org.aya.tyck.tycker.AbstractTycker
reporter, state -
Constructor Summary
ConstructorsConstructorDescriptionExprTycker(@NotNull TyckState state, @NotNull org.aya.syntax.ref.LocalCtx ctx, @NotNull LocalLet let, @NotNull org.aya.util.reporter.Reporter reporter) ExprTycker(@NotNull TyckState state, @NotNull org.aya.util.reporter.Reporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWithTerm(org.aya.syntax.concrete.Expr.WithTerm with, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.syntax.core.term.Term type) @NotNull JdgdoSynthesize(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) @NotNull Jdginherit(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr, @NotNull org.aya.syntax.core.term.Term type) @NotNull LocalLetlocalLet()@NotNull LocalLetsetLocalLet(@NotNull LocalLet let) voidsort(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) <R> R@NotNull Jdgsynthesize(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) @NotNull org.aya.syntax.core.term.Termty(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) @NotNull TermComparatorunifier(@NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.util.Ordering order) Methods inherited from class org.aya.tyck.tycker.AbstractTycker
lazyJdg, localCtx, putIndex, reporter, setLocalCtx, state, zonk, zonk, zonkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Contextful
freshMeta, generatePi, mockTerm, withMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, fail, reporterMethods inherited from interface org.aya.tyck.tycker.Stateful
freezeHoles, solve, state, whnfMethods inherited from interface org.aya.tyck.tycker.Unifiable
checkBoundaries, unifyTerm, unifyTermReported, unifyTyReported, unifyTyReported
-
Field Details
-
withTerms
@NotNull public final @NotNull kala.collection.mutable.MutableTreeSet<org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr.WithTerm>> withTerms
-
-
Constructor Details
-
ExprTycker
-
ExprTycker
public ExprTycker(@NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.util.reporter.Reporter reporter)
-
-
Method Details
-
addWithTerm
public void addWithTerm(@NotNull org.aya.syntax.concrete.Expr.WithTerm with, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.syntax.core.term.Term type) -
solveMetas
public void solveMetas() -
inherit
@NotNull public @NotNull Jdg inherit(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr, @NotNull @NotNull org.aya.syntax.core.term.Term type) - Parameters:
type- may not be in whnf, because we want unnormalized type to be used for unification.
-
ty
@NotNull public @NotNull org.aya.syntax.core.term.Term ty(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) -
sort
@NotNull public Jdg.Sort sort(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) -
synthesize
@NotNull public @NotNull Jdg synthesize(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) -
doSynthesize
@NotNull public @NotNull Jdg doSynthesize(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> expr) -
unifier
@NotNull public @NotNull TermComparator unifier(@NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.util.Ordering order) -
subscoped
- Specified by:
subscopedin interfaceContextful
-
localLet
-
setLocalLet
-