glance
Types
pub type CustomType {
CustomType(
name: String,
publicity: Publicity,
parameters: List(String),
variants: List(Variant),
)
}
Constructors
-
CustomType( name: String, publicity: Publicity, parameters: List(String), variants: List(Variant), )
pub type Error {
UnexpectedEndOfInput
UnexpectedToken(token: Token, position: Position)
}
Constructors
-
UnexpectedEndOfInput
-
UnexpectedToken(token: Token, position: Position)
pub type Field {
Field(label: Option(String), type_: Type)
}
Constructors
-
Field(label: Option(String), type_: Type)
pub type Import {
Import(
module: String,
alias: Option(String),
unqualified: List(UnqualifiedImport),
)
}
Constructors
-
Import( module: String, alias: Option(String), unqualified: List(UnqualifiedImport), )
pub type Module {
Module(
imports: List(Import),
custom_types: List(CustomType),
type_aliases: List(TypeAlias),
)
}
Constructors
-
Module( imports: List(Import), custom_types: List(CustomType), type_aliases: List(TypeAlias), )
pub type Type {
NamedType(
name: String,
module: Option(String),
parameters: List(Type),
)
TupleType(elements: List(Type))
FunctionType(paramters: List(Type), return: Type)
VariableType(name: String)
}
Constructors
-
NamedType( name: String, module: Option(String), parameters: List(Type), )
-
TupleType(elements: List(Type))
-
FunctionType(paramters: List(Type), return: Type)
-
VariableType(name: String)
pub type TypeAlias {
TypeAlias(
name: String,
publicity: Publicity,
parameters: List(String),
aliased: Type,
)
}
Constructors
-
TypeAlias( name: String, publicity: Publicity, parameters: List(String), aliased: Type, )
pub type UnqualifiedImport {
UnqualifiedImport(name: String, alias: Option(String))
}
Constructors
-
UnqualifiedImport(name: String, alias: Option(String))