HomePhabricator

[Syntax] Assert invariants on tree structure and fix a bug in mutations

Authored by ilya-biryukov on Tue, Jan 14, 7:07 AM.

Description

[Syntax] Assert invariants on tree structure and fix a bug in mutations

Add checks for some structural invariants when building and mutating
the syntax trees.

Fix a bug failing the invariants after mutations: the parent of nodes
added into the tree was null.

Details

Committed
ilya-biryukovTue, Jan 14, 7:31 AM
Parents
rG9738c757bd9b: [clang-tidy] Match InitListExpr in modernize-use-default-member-init
Branches
Unknown
Tags
Unknown