def domains_to_generate(self): def should_generate_domain(domain): domain_enum_types = filter( lambda declaration: isinstance(declaration.type, EnumType), domain.type_declarations) return len(domain.commands) > 0 or len( domain.events) > 0 or len(domain_enum_types) > 0 return filter(should_generate_domain, Generator.domains_to_generate(self))
def domains_to_generate(self): def should_generate_domain(domain): domain_enum_types = [ declaration for declaration in domain.type_declarations if isinstance(declaration.type, EnumType) ] return len(domain.commands) > 0 or len( domain.events) > 0 or len(domain_enum_types) > 0 return filter(should_generate_domain, Generator.domains_to_generate(self))
def domains_to_generate(self): return filter(ObjCGenerator.should_generate_domain_event_dispatcher_filter(self.model()), Generator.domains_to_generate(self))
def domains_to_generate(self): return filter( ObjCGenerator.should_generate_domain_types_filter(self.model()), Generator.domains_to_generate(self))
def domains_to_generate(self): return filter(lambda domain: len(domain.commands) > 0, Generator.domains_to_generate(self))
def domains_to_generate(self): return filter(lambda domain: len(self.events_for_domain(domain)) > 0, Generator.domains_to_generate(self))
def domains_to_generate(self): return filter(self.should_generate_domain, Generator.domains_to_generate(self))
def domains_to_generate(self): return list(filter(self.should_generate_types_for_domain, Generator.domains_to_generate(self)))
def domains_to_generate(self): return filter(ObjCGenerator.should_generate_domain_types_filter(self.model()), Generator.domains_to_generate(self))
def domains_to_generate(self): return [domain for domain in Generator.domains_to_generate(self) if len(self.commands_for_domain(domain)) > 0]
def domains_to_generate(self): return [domain for domain in Generator.domains_to_generate(self) if len(domain.events) > 0]
def domains_to_generate(self): return [domain for domain in Generator.domains_to_generate(self) if len(self.events_for_domain(domain)) > 0]
def domains_to_generate(self): return filter( ObjCGenerator.should_generate_domain_command_handler_filter( self.model()), Generator.domains_to_generate(self))
def domains_to_generate(self): def should_generate_domain(domain): domain_enum_types = filter(lambda declaration: isinstance(declaration.type, EnumType), domain.type_declarations) return len(domain.commands) > 0 or len(domain.events) > 0 or len(domain_enum_types) > 0 return filter(should_generate_domain, Generator.domains_to_generate(self))
def domains_to_generate(self): return list( filter(self.should_generate_events_for_domain, Generator.domains_to_generate(self)))
def domains_to_generate(self): return filter( ObjCGenerator.should_generate_domain_command_handler_filter(self.model()), Generator.domains_to_generate(self), )
def domains_to_generate(self): return [domain for domain in Generator.domains_to_generate(self) if len(domain.commands) > 0]