Commit graph

8 commits

Author SHA1 Message Date
zaicruvoir1rominet
efc53af608
Add helper functions for common ways of filtering nodes (#1137)
* Make the nodes fields filtering process - from libcst.tool - public, so that other libraries may provide their own custom representation of LibCST graphs.

* Create functions to access & filter CST-node fields (with appropriate docstrings & tests), in libcst.helpers

* Add new CST-node fields functions to helpers documentation.
2024-05-13 10:20:47 +01:00
Jimmy Lai
abd37df6b6 [doc] add get_full_name_for_node_or_raise 2020-02-12 12:03:57 -08:00
Jimmy Lai
7b474703a0 [doc] fix indentation 2020-01-29 05:25:30 +08:00
Jennifer Taylor
e48aa6eaf7 Implement basic templated statement/expression/module parsing.
This has some corner cases that we do not currently handle, but those will come in a later commit.
2020-01-23 10:17:47 -08:00
Jennifer Taylor
fdd5cbbfe6 Implement parsing of posonly param indicator ('/'). This brings us to full 3.8 compatibility. 2020-01-17 10:57:48 -08:00
Jimmy Lai
0d01792e6d expose all helpers in libcst.helpers for convenience 2020-01-14 15:11:48 -08:00
Jimmy Lai
257fd5755e move ensure_future to libcst.helpers.expression 2020-01-10 12:15:38 -08:00
Jimmy Lai
dffb27b5b9 add get_full_name_for_expression helper 2020-01-10 12:15:38 -08:00