Skip to main content

Module ast

Module ast 

Source
Expand description

The syntax trees for data-type declarations and data values.

Structs§

Argument
An argument of a tuple constructor, which is either positional or given by the name of a parameter.
ConstDecl
const name<Params>: Type = value;, in which the parameters and the type may be left out together.
EnumDecl
enum Name<Params> = Variants;
Field
A field of a record type.
Member
A member of a record value, name: value.
Parameter
A parameter of a tuple constructor. Unnamed parameters come first and can only be bound by position.
TypeParam
A type parameter of an enum or a const, such as the T of enum List<T>.
TypesFile
The declarations of a types file.
Value
A data value.
Variant
A variant of an enum, which is a constructor and what it takes.

Enums§

TaggedBody
What follows the name of a constructor in a value.
Type
A type, as it is written in a declaration.
ValueKind
The kinds of a data value.
VariantBody
What the constructor of a variant takes.