java.lang.Object
java.lang.Record
org.aya.tyck.unify.Synthesizer
Similar to
GetTypeVisitor in Arend.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSynthesizer(@NotNull TyckState state, @NotNull LocalCtx ctx) Creates an instance of aSynthesizerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalCtxctx()Returns the value of thectxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninheritPiDom(@NotNull Term type, @NotNull SortTerm expected) @NotNull Term@NotNull TyckStatestate()Returns the value of thestaterecord component.@Nullable Termsynthesize(@NotNull Term preterm) final StringtoString()Returns a string representation of this record class.@Nullable Term
-
Constructor Details
-
Synthesizer
Creates an instance of aSynthesizerrecord class.- Parameters:
state- the value for thestaterecord componentctx- the value for thectxrecord component
-
-
Method Details
-
tryPress
-
press
-
inheritPiDom
-
synthesize
- Parameters:
preterm- expected to be beta-normalized- Returns:
- null if failed to synthesize
-
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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
ctx
Returns the value of thectxrecord component.- Returns:
- the value of the
ctxrecord component
-