gsh/evaluator/types
Types
pub type ConstructorData {
ConstructorData(name: String)
}
Constructors
-
ConstructorData(name: String)
pub type ModuleData {
ModuleData(
types: dict.Dict(String, TypeData),
functions: dict.Dict(String, FunctionData),
)
}
Constructors
-
ModuleData( types: dict.Dict(String, TypeData), functions: dict.Dict(String, FunctionData), )
pub type PackageInterface {
PackageInterface(
name: String,
modules: dict.Dict(String, ModuleData),
)
}
Constructors
-
PackageInterface( name: String, modules: dict.Dict(String, ModuleData), )
pub type TypeData {
TypeData(constructors: List(ConstructorData))
}
Constructors
-
TypeData(constructors: List(ConstructorData))
Values
pub fn get_entry_type(
json_string: String,
module_name: String,
) -> Result(String, String)
pub fn infer_or_get_type(
json_string: String,
module_name: String,
source_input: String,
) -> Result(String, Nil)
pub fn package_interface_decoder() -> decode.Decoder(
PackageInterface,
)
pub fn type_node_decoder() -> decode.Decoder(TypeNode)