Page MenuHomePhabricator

[clang-diff] Use references to Node instead of NodeId
Needs ReviewPublic

Authored by johannes on Nov 5 2017, 10:51 AM.



This adds to each node a reference to its syntax tree. As a result,
instead of passing around the tree plus the node ID, we just use a
reference to the node. This removes some potential for errors. Users
will almost always use node references and are oblivious of their IDs.

Iterating through lists of Nodes is provided by NodeRefIterator

Event Timeline

johannes created this revision.Nov 5 2017, 10:51 AM