Swift: parametrize namespace and other things in codegen

This is so that we can use this in the PoC branch.
This commit is contained in:
Paolo Tranquilli
2022-05-05 16:01:54 +02:00
parent c87fb4df53
commit 7bcc5db4a6
10 changed files with 76 additions and 39 deletions

View File

@@ -105,14 +105,18 @@ class Tag:
class TrapList:
template: ClassVar = 'trap_traps'
traps: List[Trap] = field(default_factory=list)
traps: List[Trap]
namespace: str
trap_suffix: str
include_dir: str
@dataclass
class TagList:
template: ClassVar = 'trap_tags'
tags: List[Tag] = field(default_factory=list)
tags: List[Tag]
namespace: str
@dataclass
@@ -148,3 +152,6 @@ class ClassList:
template: ClassVar = "cpp_classes"
classes: List[Class]
namespace: str
trap_suffix: str
include_dir: str