mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
This does a few things, since it was easier to combine than separate: - Uses type aliases instead of fully-unrolled types, making it far easier for a human to read. - Makes codegen approximately 3x faster, which has the side effect of halving our test run times. - Consolidate the way we use type aliases by dropping the MetadataPredicate type for now, increasing consistency. - Widen types for AllOf/OneOf matchers to allow for MatchIfTrue since this is supported under the hood. This results in a generated matchers file that is 1/3 the size it was, more readable by a human, and most importantly, faster to codegen, parse, format and typecheck. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| gather.py | ||
| gen_matcher_classes.py | ||
| gen_type_mapping.py | ||
| gen_visitor_functions.py | ||
| generate.py | ||
| transforms.py | ||