[introspect] Extract struct array extents from comments.

PiperOrigin-RevId: 687254268
Change-Id: Ia70dca073eaa4a99c60f76b7c69c730856193512
This commit is contained in:
Saran Tunyasuvunakool
2024-10-18 04:34:28 -07:00
committed by Copybara-Service
parent 43a7493d17
commit 62c0ef4262
4 changed files with 1024 additions and 503 deletions
+1
View File
@@ -234,6 +234,7 @@ class StructFieldDecl:
'AnonymousUnionDecl',
]
doc: str
array_extent: Optional[Tuple[Union[str, int], ...]] = None
def __str__(self):
return self.type.decl(self.name)