builder/module
Types
Represents a parsed Gleam module with all its definitions
Contains the module’s metadata (name, package, path) along with all its top-level definitions including imports, types, constants, and functions.
pub type Module {
Module(
name: String,
package: String,
path: String,
imports: List(glance.Definition(glance.Import)),
custom_types: List(glance.Definition(glance.CustomType)),
type_aliases: List(glance.Definition(glance.TypeAlias)),
constants: List(glance.Definition(glance.Constant)),
functions: List(glance.Definition(glance.Function)),
external: Bool,
file: String,
)
}
Constructors
-
Module( name: String, package: String, path: String, imports: List(glance.Definition(glance.Import)), custom_types: List(glance.Definition(glance.CustomType)), type_aliases: List(glance.Definition(glance.TypeAlias)), constants: List(glance.Definition(glance.Constant)), functions: List(glance.Definition(glance.Function)), external: Bool, file: String, )