LibCST/libcst/codegen
Jennifer Taylor f5079f6b39 Implement a MatchMetadataIfTrue matcher.
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.
2019-11-08 08:22:27 -08:00
..
tests Codegen valid return types mapping for each CSTNode class. 2019-10-16 12:48:20 -07:00
__init__.py Add unit test to verify that codegen is clean. 2019-08-28 13:28:29 -07:00
gather.py Rename ExtSlice to SubscriptElement in anticipation of further fitxes. 2019-10-16 16:00:27 -07:00
gen_matcher_classes.py Implement a MatchMetadataIfTrue matcher. 2019-11-08 08:22:27 -08:00
gen_type_mapping.py Codegen valid return types mapping for each CSTNode class. 2019-10-16 12:48:20 -07:00
gen_visitor_functions.py Rename ExtSlice to SubscriptElement in anticipation of further fitxes. 2019-10-16 16:00:27 -07:00
generate.py Codegen valid return types mapping for each CSTNode class. 2019-10-16 12:48:20 -07:00
transforms.py Fix string sanitization to not change things such as '"'. 2019-10-31 12:54:26 -07:00