java.lang.Object
java.lang.Record
org.aya.tyck.pat.ClauseTycker.LhsResult
- Enclosing class:
ClauseTycker
public static record ClauseTycker.LhsResult(@NotNull org.aya.syntax.ref.LocalCtx localCtx, @NotNull org.aya.syntax.core.term.Term type, @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull LocalLet asSubst, org.aya.syntax.core.pat.Pat.Preclause<org.aya.syntax.concrete.Expr> clause, boolean hasError)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLhsResult(@NotNull org.aya.syntax.ref.LocalCtx localCtx, @NotNull org.aya.syntax.core.term.Term type, @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull LocalLet asSubst, org.aya.syntax.core.pat.Pat.Preclause<org.aya.syntax.concrete.Expr> clause, boolean hasError) Creates an instance of aLhsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocalLet(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> teleBinds, @NotNull ExprTycker exprTycker) @NotNull LocalLetasSubst()Returns the value of theasSubstrecord component.org.aya.syntax.core.pat.Pat.Preclause<org.aya.syntax.concrete.Expr> clause()Returns the value of theclauserecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasError()Returns the value of thehasErrorrecord component.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.syntax.ref.LocalCtxlocalCtx()Returns the value of thelocalCtxrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Jdg> Returns the value of theparamSubstrecord component.final StringtoString()Returns a string representation of this record class.@NotNull org.aya.syntax.core.term.Termtype()Returns the value of thetyperecord component.
-
Constructor Details
-
LhsResult
public LhsResult(@NotNull @NotNull org.aya.syntax.ref.LocalCtx localCtx, @NotNull @NotNull org.aya.syntax.core.term.Term type, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull @NotNull LocalLet asSubst, @NotNull org.aya.syntax.core.pat.Pat.Preclause<org.aya.syntax.concrete.Expr> clause, boolean hasError) Creates an instance of aLhsResultrecord class.- Parameters:
localCtx- the value for thelocalCtxrecord componenttype- the value for thetyperecord componentparamSubst- the value for theparamSubstrecord componentasSubst- the value for theasSubstrecord componentclause- the value for theclauserecord componenthasError- the value for thehasErrorrecord component
-
-
Method Details
-
addLocalLet
@Contract(mutates="param2") public void addLocalLet(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> teleBinds, @NotNull @NotNull ExprTycker exprTycker) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
localCtx
@NotNull public @NotNull org.aya.syntax.ref.LocalCtx localCtx()Returns the value of thelocalCtxrecord component.- Returns:
- the value of the
localCtxrecord component
-
type
@NotNull public @NotNull org.aya.syntax.core.term.Term type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
paramSubst
Returns the value of theparamSubstrecord component.- Returns:
- the value of the
paramSubstrecord component
-
asSubst
Returns the value of theasSubstrecord component.- Returns:
- the value of the
asSubstrecord component
-
clause
@NotNull public org.aya.syntax.core.pat.Pat.Preclause<org.aya.syntax.concrete.Expr> clause()Returns the value of theclauserecord component.- Returns:
- the value of the
clauserecord component
-
hasError
public boolean hasError()Returns the value of thehasErrorrecord component.- Returns:
- the value of the
hasErrorrecord component
-