pub fn new(
        loc: Loc,
        identifier: ModuleIdent,
        friends: Vec<ModuleIdent>,
        imports: Vec<ImportDefinition>,
        explicit_dependency_declarations: Vec<ModuleDependency>,
        structs: Vec<StructDefinition>,
        constants: Vec<Constant>,
        functions: Vec<(FunctionName, Function)>,
        synthetics: Vec<SyntheticDefinition>,
    ) -> Self {
        ModuleDefinition {
            loc,
            identifier,
            friends,
            imports,
            explicit_dependency_declarations,
            structs,
            constants,
            functions,
            synthetics,
        }
    }
/// Creates a new `ModuleDefinition` from its string name, dependencies, structs+resources,
/// and procedures
/// Does not verify the correctness of any internal properties of its elements
Creates a new `ModuleDefinition` from its string name, dependencies, structs+resources,
and procedures
Does not verify the correctness of any internal properties of its elements
Creates a new ` ModuleDefinition ` from its string name dependencies structs + resources and procedures Does not verify the correctness of any internal properties of its elements
pub fn new(
        loc: Loc,
        identifier: ModuleIdent,
        friends: Vec<ModuleIdent>,
        imports: Vec<ImportDefinition>,
        explicit_dependency_declarations: Vec<ModuleDependency>,
        structs: Vec<StructDefinition>,
        constants: Vec<Constant>,
        functions: Vec<(FunctionName, Function)>,
        synthetics: Vec<SyntheticDefinition>,
    ) -> Self {
        ModuleDefinition {
            loc,
            identifier,
            friends,
            imports,
            explicit_dependency_declarations,
            structs,
            constants,
            functions,
            synthetics,
        }
    }
pub fn new ( loc : Loc , identifier : ModuleIdent , friends : Vec < ModuleIdent > , imports : Vec < ImportDefinition > , explicit_dependency_declarations : Vec < ModuleDependency > , structs : Vec < StructDefinition > , constants : Vec < Constant > , functions : Vec < ( FunctionName , Function ) > , synthetics : Vec < SyntheticDefinition > , ) -> Self { ModuleDefinition { loc , identifier , friends , imports , explicit_dependency_declarations , structs , constants , functions , synthetics , } }
Creates a new `ModuleDefinition` from its string name, dependencies, structs+resources,
and procedures
Does not verify the correctness of any internal properties of its elements
Creates a new ` ModuleDefinition ` from its string name dependencies structs + resources and procedures Does not verify the correctness of any internal properties of its elements
loc
Loc
identifier
ModuleIdent
friends
Vec<ModuleIdent>
imports
Vec<ImportDefinition>
explicit_dependency_declarations
Vec<ModuleDependency>
structs
Vec<StructDefinition>
constants
Vec<Constant>
functions
Vec<(FunctionName, Function)>
synthetics
Vec<SyntheticDefinition>