Module aya.base

Class TeleDecl.DataDecl

All Implemented Interfaces:
Decl, Decl.Resulted, Decl.Telescopic<SortTerm>, Decl.TopLevel, Stmt, AyaDocile, TyckUnit, org.aya.util.binop.OpDecl, org.aya.util.error.SourceNode
Enclosing class:
TeleDecl<RetTy extends Term>

public static final class TeleDecl.DataDecl extends TeleDecl<SortTerm>
Concrete data definition
See Also:
  • Field Details

    • ref

      @NotNull public final @NotNull DefVar<DataDef,TeleDecl.DataDecl> ref
    • body

      @NotNull public final @NotNull kala.collection.immutable.ImmutableSeq<TeleDecl.DataCtor> body
    • checkedBody

      @NotNull public final @NotNull kala.collection.mutable.MutableList<@NotNull CtorDef> checkedBody
      Yet type-checked constructors
  • Constructor Details

    • DataDecl

      public DataDecl(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.util.error.SourcePos entireSourcePos, @NotNull @NotNull Stmt.Accessibility accessibility, @Nullable @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull @NotNull String name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull @NotNull Expr result, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<TeleDecl.DataCtor> body, @NotNull @NotNull BindBlock bindBlock, @NotNull Decl.Personality personality)
  • Method Details