- All Implemented Interfaces:
Decl,Decl.TopLevel,Stmt,AyaDocile,TyckUnit,org.aya.util.binop.OpDecl,org.aya.util.error.SourceNode
Concrete function definition
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aya.concrete.stmt.decl.TeleDecl
TeleDecl.DataCtor, TeleDecl.DataDecl, TeleDecl.FnDecl, TeleDecl.PrimDecl, TeleDecl.StructDecl, TeleDecl.StructField, TeleDecl.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@NotNull kala.control.Either<Expr,kala.collection.immutable.ImmutableSeq<Pattern.Clause>> final booleanIf a function is anonymous.final @NotNull DefVar<FnDef,TeleDecl.FnDecl> Fields inherited from class org.aya.concrete.stmt.decl.TeleDecl.TopLevel
ctxFields inherited from class org.aya.concrete.stmt.decl.CommonDecl
infoFields inherited from interface org.aya.util.binop.OpDecl
APPLICATION -
Constructor Summary
ConstructorsConstructorDescriptionFnDecl(@NotNull DeclInfo info, @NotNull EnumSet<Modifier> modifiers, @NotNull String name, @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @Nullable Expr result, @NotNull kala.control.Either<Expr, kala.collection.immutable.ImmutableSeq<Pattern.Clause>> body, DeclInfo.Personality personality, boolean isAnonymous) -
Method Summary
Methods inherited from class org.aya.concrete.stmt.decl.TeleDecl.TopLevel
getCtx, personality, setCtxMethods inherited from class org.aya.concrete.stmt.decl.TeleDecl
modifyResult, modifyTelescopeMethods 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
-
modifiers
-
ref
-
isAnonymous
public final boolean isAnonymousIf a function is anonymous. It only occurs when the personality is example/counterexample, and theref.nameis generated. -
body
@NotNull public @NotNull kala.control.Either<Expr,kala.collection.immutable.ImmutableSeq<Pattern.Clause>> body
-
-
Constructor Details
-
FnDecl
public FnDecl(@NotNull @NotNull DeclInfo info, @NotNull @NotNull EnumSet<Modifier> modifiers, @NotNull @NotNull String name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @Nullable @Nullable Expr result, @NotNull @NotNull kala.control.Either<Expr, kala.collection.immutable.ImmutableSeq<Pattern.Clause>> body, @NotNull DeclInfo.Personality personality, boolean isAnonymous)
-
-
Method Details