Type Alias TypedModule

Source
pub type TypedModule = Module<TypeInfo, TypedDefinition>;

Aliased Type§

pub struct TypedModule {
    pub name: String,
    pub docs: Vec<String>,
    pub type_info: TypeInfo,
    pub definitions: Vec<Definition<Rc<Type>, TypedArg, TypedExpr, String>>,
    pub lines: LineNumbers,
    pub kind: ModuleKind,
}

Fields§

§name: String§docs: Vec<String>§type_info: TypeInfo§definitions: Vec<Definition<Rc<Type>, TypedArg, TypedExpr, String>>§lines: LineNumbers§kind: ModuleKind

Implementations§

Source§

impl TypedModule

Source

pub fn find_node(&self, byte_index: usize) -> Option<Located<'_>>

Source

pub fn has_definition(&self, name: &str) -> bool

Source

pub fn has_constructor(&self, name: &str) -> bool

Source

pub fn validate_module_name(&self) -> Result<(), Error>

Source

pub fn register_definitions( &self, functions: &mut IndexMap<FunctionAccessKey, TypedFunction>, constants: &mut IndexMap<FunctionAccessKey, TypedExpr>, data_types: &mut IndexMap<DataTypeKey, TypedDataType>, )