MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / get_linear_subpattern

Method get_linear_subpattern

Lib/lib2to3/btm_utils.py:75–94  ·  view source on GitHub ↗

Drives the leaf_to_root method. The reason that leaf_to_root must be run multiple times is because we need to reject 'group' matches; for example the alternative form (a | b c) creates a group [b c] that needs to be matched. Since matching multiple linear patterns ove

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

add_fixerMethod · 0.80

Calls 2

leavesMethod · 0.95
leaf_to_rootMethod · 0.80

Tested by

no test coverage detected