MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / rec

Function rec

scripts/kconfig/kconfiglib.py:6225–6237  ·  view source on GitHub ↗
(subexpr)

Source from the content-addressed store, hash-verified

6223 res = set()
6224
6225 def rec(subexpr):
6226 if subexpr.__class__ is tuple:
6227 # AND, OR, NOT, or relation
6228
6229 rec(subexpr[1])
6230
6231 # NOTs only have a single operand
6232 if subexpr[0] is not NOT:
6233 rec(subexpr[2])
6234
6235 else:
6236 # Symbol or choice
6237 res.add(subexpr)
6238
6239 rec(expr)
6240 return res

Callers 2

expr_itemsFunction · 0.70
split_exprFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected