aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/CondIfAttribute.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tosa/CondIfAttribute.py')
-rw-r--r--python/tosa/CondIfAttribute.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/python/tosa/CondIfAttribute.py b/python/tosa/CondIfAttribute.py
index fddf5d9..cdecec6 100644
--- a/python/tosa/CondIfAttribute.py
+++ b/python/tosa/CondIfAttribute.py
@@ -42,15 +42,26 @@ class CondIfAttribute(object):
return self._tab.String(o + self._tab.Pos)
return None
-def CondIfAttributeStart(builder): builder.StartObject(2)
+def CondIfAttributeStart(builder):
+ builder.StartObject(2)
+
def Start(builder):
- return CondIfAttributeStart(builder)
-def CondIfAttributeAddThenBranch(builder, thenBranch): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(thenBranch), 0)
+ CondIfAttributeStart(builder)
+
+def CondIfAttributeAddThenBranch(builder, thenBranch):
+ builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(thenBranch), 0)
+
def AddThenBranch(builder, thenBranch):
- return CondIfAttributeAddThenBranch(builder, thenBranch)
-def CondIfAttributeAddElseBranch(builder, elseBranch): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(elseBranch), 0)
+ CondIfAttributeAddThenBranch(builder, thenBranch)
+
+def CondIfAttributeAddElseBranch(builder, elseBranch):
+ builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(elseBranch), 0)
+
def AddElseBranch(builder, elseBranch):
- return CondIfAttributeAddElseBranch(builder, elseBranch)
-def CondIfAttributeEnd(builder): return builder.EndObject()
+ CondIfAttributeAddElseBranch(builder, elseBranch)
+
+def CondIfAttributeEnd(builder):
+ return builder.EndObject()
+
def End(builder):
- return CondIfAttributeEnd(builder) \ No newline at end of file
+ return CondIfAttributeEnd(builder)