mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch adds a python function to syntax node gyb support called "check_child_condition". Given a child's definition, this function generate a C++ closure to check whether a given syntax node can satisfy the condition of the child node. This function recursively generates code for node choices too, therefore we don't need to hard code the condition checking for node choices.
2.9 KiB
2.9 KiB