Beispiel #1
0
 def __init__(self, info_provider, cache_dir, output_dir, snake_case, target_component):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider, cache_dir, output_dir, snake_case)
     self.target_component = target_component
     # The code below duplicates parts of TypedefResolver. We do not use it
     # directly because IdlUnionType is not a type defined in
     # idl_definitions.py. What we do instead is to resolve typedefs in
     # _generate_container_code() whenever a new union file is generated.
     self.typedefs = {}
     for name, typedef in self.info_provider.typedefs.iteritems():
         self.typedefs[name] = typedef.idl_type
Beispiel #2
0
 def __init__(self, info_provider, cache_dir, output_dir, target_component):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider, cache_dir, output_dir)
     self.target_component = target_component
     # The code below duplicates parts of TypedefResolver. We do not use it
     # directly because IdlUnionType is not a type defined in
     # idl_definitions.py. What we do instead is to resolve typedefs in
     # _generate_container_code() whenever a new union file is generated.
     self.typedefs = {}
     for name, typedef in self.info_provider.typedefs.iteritems():
         self.typedefs[name] = typedef.idl_type
Beispiel #3
0
 def __init__(self, info_provider, cache_dir, output_dir):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider,
                                cache_dir, output_dir)
     self.type_resolver = TypeResolver(info_provider.interfaces_info)
     self.typedef_resolver = TypedefResolver(info_provider)
Beispiel #4
0
 def __init__(self, info_provider, cache_dir, output_dir, target_component):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider, cache_dir, output_dir)
     self.target_component = target_component
     self.typedef_resolver = TypedefResolver(info_provider)
Beispiel #5
0
 def __init__(self, info_provider, cache_dir, output_dir, target_component):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider,
                                cache_dir, output_dir)
     self.target_component = target_component
     self.typedef_resolver = TypedefResolver(info_provider)
 def __init__(self, info_provider, cache_dir, output_dir):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider,
                                cache_dir, output_dir)
     self.type_resolver = TypeResolver(info_provider.interfaces_info)
     self.typedef_resolver = TypedefResolver(info_provider)
Beispiel #7
0
 def __init__(self, info_provider, cache_dir, output_dir, snake_case):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider, cache_dir, output_dir, snake_case)
     self.typedef_resolver = TypedefResolver(info_provider)
Beispiel #8
0
 def __init__(self, info_provider, cache_dir, output_dir, target_component):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider,
                                cache_dir, output_dir)
     self.jinja_env = initialize_jinja_env(cache_dir)
     self.target_component = target_component
Beispiel #9
0
 def __init__(self, info_provider, cache_dir, output_dir):
     CodeGeneratorBase.__init__(self, MODULE_PYNAME, info_provider,
                                cache_dir, output_dir)
     self.typedef_resolver = TypedefResolver(info_provider)
     self.jinja_env = initialize_jinja_env(cache_dir)