mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
This is especially helpful for checking qualified names of nodes against one item or a list of items that you wish to match against. I chose to create a new matcher instead of widening the type of `MatchMetadata` to take in either a value or a callable. I was originally going to do the former, but having a MatchIfTrue and a MatchMetadataIfTrue felt more orthogonal and became easier to explain than a single MatchIfTrue that could take two types of values. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| gather.py | ||
| gen_matcher_classes.py | ||
| gen_type_mapping.py | ||
| gen_visitor_functions.py | ||
| generate.py | ||
| transforms.py | ||