You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43b186f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(python): enforce ERR_RESERVED_ATTR in parser (ADR-0006 §D1)
Adds inline detection of @-prefixed reserved structural keys (name, package,
extends, abstract, overlay, isArray, children, value) during parse. Any
such key emits ERR_RESERVED_ATTR with the offending node and key in the
message — matches the TS parser-core behaviour.
The reserved-key tuple lives in parser.py and is built from the existing
shared.structural KEY_* constants — single source of truth.
Migrates two codegen golden fixtures (nested-array, scalars) from the
deprecated @isarray attribute form to the bare isArray structural key per
ADR-0006 §D1.
Ledger: un-gates error-reserved-word-as-attr.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments