/// Create a namespace and populate with the parameters for the target
Create a namespace and populate with the parameters for the target
Create a namespace and populate with the parameters for the target
pub fn new(target: Target, address_length: usize, value_length: usize) -> Self {
        ast::Namespace {
            target,
            files: Vec::new(),
            enums: Vec::new(),
            structs: Vec::new(),
            events: Vec::new(),
            contracts: Vec::new(),
            functions: Vec::new(),
            constants: Vec::new(),
            address_length,
            value_length,
            symbols: HashMap::new(),
            diagnostics: Vec::new(),
            next_id: 0,
            var_constants: HashMap::new(),
        }
    }
pub fn new ( target : Target , address_length : usize , value_length : usize ) -> Self { ast :: Namespace { target , files : Vec :: new ( ) , enums : Vec :: new ( ) , structs : Vec :: new ( ) , events : Vec :: new ( ) , contracts : Vec :: new ( ) , functions : Vec :: new ( ) , constants : Vec :: new ( ) , address_length , value_length , symbols : HashMap :: new ( ) , diagnostics : Vec :: new ( ) , next_id : 0 , var_constants : HashMap :: new ( ) , } }
Create a namespace and populate with the parameters for the target
Create a namespace and populate with the parameters for the target
target
Target
address_length
usize
value_length
usize