LibCST/libcst/codegen
Jennifer Taylor 48ba3b0849 Remove parsing Subscript slice directly into Index/Slice.
This makes sure we always wrap elements in a SubscriptElement, even when there
is only one element. This makes things more regular while still being backwards
compatible with existing creation. The meat of this is in two halves, which can't
be split due to not wanting to break the build between commits. The first half
is just the changes to the parser and updates to tests. This includes a test to
be sure we can still render code that uses old construction types. The second half
is changes to codegen which made assumptions about `Subscript` and demonstrates
the need to make this change in the first place. This includes a fix to
`CSTNode.with_deep_changes` type to make it more correct and also more usable in
transforms without additional type assertions.
2019-10-18 13:40:10 -07: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 Remove parsing Subscript slice directly into Index/Slice. 2019-10-18 13:40:10 -07: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 Remove parsing Subscript slice directly into Index/Slice. 2019-10-18 13:40:10 -07:00