gh-121332: Make AST node constructor check _attributes instead of hardcoding attributes (#121334)

4 files changed