Clean up new schema code.
- Declare the full child lists of the body-alias elements. - Verify read-table coverage: every generated row array must be consumed. - Fix stale attribute facts on hand-read elements. PiperOrigin-RevId: 958685667 Change-Id: I4a914f3136a5078eb8ca24aa4e162d55afafd923
This commit is contained in:
committed by
Copybara-Service
parent
f848b185d3
commit
2544c34997
@@ -130,7 +130,12 @@ def generate() -> str:
|
||||
constraints.append(f" {{{row_index}, '{KIND_CHAR[con.kind]}', "
|
||||
f'"{spec}"}},')
|
||||
|
||||
children = [c for c in element.children() if c.name != element.name]
|
||||
# self-recursion is implied by card R; alias elements (worldbody, frame,
|
||||
# replicate) have no rows -- mjXSchema::NameMatch admits their tags
|
||||
# against the body row
|
||||
children = [c for c in element.children()
|
||||
if c.name != element.name
|
||||
and 'alias' not in schema.elements[c.name].facets]
|
||||
if project:
|
||||
# plugin configuration is not settable per-class
|
||||
children = [c for c in children if c.name != 'plugin']
|
||||
|
||||
Reference in New Issue
Block a user