Tag nullable arguments in main header. Fixes #309

Nullable arguments will be added to the `introspect` datastructures in a future change.

PiperOrigin-RevId: 789350522
Change-Id: I0bfd12fab5121f94b937264570f907593b63cf64
This commit is contained in:
Yuval Tassa
2025-07-31 08:38:01 -07:00
committed by Copybara-Service
parent ee63b82e1c
commit 32c7d3f085
6 changed files with 203 additions and 11 deletions
@@ -95,7 +95,11 @@ class MjFunctionVisitor:
else:
strings = []
for child in node['inner']:
strings.append(self._make_comment(child))
comment = self._make_comment(child)
nullable_index = comment.find('Nullable:')
if nullable_index != -1:
comment = comment[:nullable_index]
strings.append(comment)
return ''.join(strings)
def visit(self, node: ClangJsonNode) -> None: