java.lang.Object
java.lang.Record
org.aya.tyck.error.UnifyError.ConReturn
- All Implemented Interfaces:
TyckError,UnifyError,org.aya.util.reporter.Problem
- Enclosing interface:
UnifyError
public static record UnifyError.ConReturn(@NotNull org.aya.syntax.concrete.stmt.decl.DataCon con, UnifyInfo.Comparison comparison, @NotNull UnifyInfo info)
extends Record
implements UnifyError
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.util.reporter.Problem
org.aya.util.reporter.Problem.Severity, org.aya.util.reporter.Problem.StageNested classes/interfaces inherited from interface org.aya.tyck.error.UnifyError
UnifyError.ConReturn, UnifyError.PiDom, UnifyError.Type -
Field Summary
Fields inherited from interface org.aya.util.reporter.Problem
ERROR, NOTE -
Constructor Summary
ConstructorsConstructorDescriptionConReturn(@NotNull org.aya.syntax.concrete.stmt.decl.DataCon con, UnifyInfo.Comparison comparison, @NotNull UnifyInfo info) Creates an instance of aConReturnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomparisonrecord component.@NotNull org.aya.syntax.concrete.stmt.decl.DataConcon()Returns the value of theconrecord component.@NotNull org.aya.pretty.doc.Docdescribe(@NotNull org.aya.util.prettier.PrettierOptions options) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull UnifyInfoinfo()Returns the value of theinforecord component.@NotNull org.aya.util.error.SourcePosfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.util.reporter.Problem
brief, hint, inlineHints, isError, toPrettyError
-
Constructor Details
-
ConReturn
public ConReturn(@NotNull @NotNull org.aya.syntax.concrete.stmt.decl.DataCon con, @NotNull UnifyInfo.Comparison comparison, @NotNull @NotNull UnifyInfo info) Creates an instance of aConReturnrecord class.- Parameters:
con- the value for theconrecord componentcomparison- the value for thecomparisonrecord componentinfo- the value for theinforecord component
-
-
Method Details
-
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()- Specified by:
sourcePosin interfaceorg.aya.util.reporter.Problem
-
describe
@NotNull public @NotNull org.aya.pretty.doc.Doc describe(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options) - Specified by:
describein interfaceorg.aya.util.reporter.Problem
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
con
@NotNull public @NotNull org.aya.syntax.concrete.stmt.decl.DataCon con()Returns the value of theconrecord component.- Returns:
- the value of the
conrecord component
-
comparison
Returns the value of thecomparisonrecord component.- Returns:
- the value of the
comparisonrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-