java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatternTycker.TyckResult
- Enclosing class:
PatternTycker
public static record PatternTycker.TyckResult(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.core.pat.Pat> wellTyped, @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull LocalLet asSubst, @Nullable org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> newBody, boolean hasError)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTyckResult(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.core.pat.Pat> wellTyped, @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull LocalLet asSubst, @Nullable org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> newBody, boolean hasError) Creates an instance of aTyckResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalLetasSubst()Returns the value of theasSubstrecord 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.@Nullable org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> newBody()Returns the value of thenewBodyrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Jdg> Returns the value of theparamSubstrecord component.@NotNull kala.collection.SeqView<org.aya.syntax.core.term.Term> final StringtoString()Returns a string representation of this record class.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.core.pat.Pat> Returns the value of thewellTypedrecord component.
-
Constructor Details
-
TyckResult
public TyckResult(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.core.pat.Pat> wellTyped, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Jdg> paramSubst, @NotNull @NotNull LocalLet asSubst, @Nullable @Nullable org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> newBody, boolean hasError) Creates an instance of aTyckResultrecord class.- Parameters:
wellTyped- the value for thewellTypedrecord componentparamSubst- the value for theparamSubstrecord componentasSubst- the value for theasSubstrecord componentnewBody- the value for thenewBodyrecord componenthasError- the value for thehasErrorrecord component
-
-
Method Details
-
paramSubstObj
@NotNull public @NotNull kala.collection.SeqView<org.aya.syntax.core.term.Term> paramSubstObj() -
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 '=='. -
wellTyped
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.core.pat.Pat> wellTyped()Returns the value of thewellTypedrecord component.- Returns:
- the value of the
wellTypedrecord 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
-
newBody
@Nullable public @Nullable org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> newBody()Returns the value of thenewBodyrecord component.- Returns:
- the value of the
newBodyrecord component
-
hasError
public boolean hasError()Returns the value of thehasErrorrecord component.- Returns:
- the value of the
hasErrorrecord component
-