java.lang.Object
org.aya.concrete.stmt.decl.CommonDecl
org.aya.concrete.stmt.decl.TeleDecl<RetTy>
- All Implemented Interfaces:
Decl,Stmt,AyaDocile,TyckUnit,org.aya.util.binop.OpDecl,org.aya.util.error.SourceNode
- Direct Known Subclasses:
TeleDecl.ClassMember,TeleDecl.DataCtor,TeleDecl.TopLevel
public abstract sealed class TeleDecl<RetTy extends Term>
extends CommonDecl
permits TeleDecl.TopLevel<RetTy>, TeleDecl.DataCtor, TeleDecl.ClassMember
Concrete telescopic definition, corresponding to
Def.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final classstatic final classstatic final classConcrete data definitionstatic final recordstatic interfacestatic final classConcrete function definitionstatic final classstatic classTeleDecl.TopLevel<RetTy extends Term>Nested classes/interfaces inherited from interface org.aya.util.binop.OpDecl
org.aya.util.binop.OpDecl.BindPred, org.aya.util.binop.OpDecl.OpInfoNested classes/interfaces inherited from interface org.aya.concrete.stmt.Stmt
Stmt.Accessibility -
Field Summary
FieldsModifier and TypeFieldDescription@Nullable Expr@NotNull kala.collection.immutable.ImmutableSeq<Expr.Param>Fields inherited from class org.aya.concrete.stmt.decl.CommonDecl
infoFields inherited from interface org.aya.util.binop.OpDecl
APPLICATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTeleDecl(@NotNull DeclInfo info, @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @Nullable Expr result) -
Method Summary
Modifier and TypeMethodDescriptionvoidmodifyResult(@NotNull UnaryOperator<Expr> f) voidmodifyTelescope(@NotNull UnaryOperator<kala.collection.immutable.ImmutableSeq<Expr.Param>> f) ref()Methods inherited from class org.aya.concrete.stmt.decl.CommonDecl
info, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.concrete.stmt.decl.Decl
accessibility, bindBlock, entireSourcePos, needTyck, opInfo, sourcePos
-
Field Details
-
result
-
telescope
-
signature
-
-
Constructor Details
-
TeleDecl
protected TeleDecl(@NotNull @NotNull DeclInfo info, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @Nullable @Nullable Expr result)
-
-
Method Details
-
modifyResult
-
modifyTelescope
public void modifyTelescope(@NotNull @NotNull UnaryOperator<kala.collection.immutable.ImmutableSeq<Expr.Param>> f) -
ref
-