MCPcopy Index your code
hub / github.com/nodejs/node / ParseLogicalExpression

Function ParseLogicalExpression

tools/test.py:1248–1258  ·  view source on GitHub ↗
(scan)

Source from the content-addressed store, hash-verified

1246
1247LOGICALS = ["&&", "||", ","]
1248def ParseLogicalExpression(scan):
1249 left = ParseConditionalExpression(scan)
1250 if not left: return None
1251 while scan.HasMore() and (scan.Current() in LOGICALS):
1252 op = scan.Current()
1253 scan.Advance()
1254 right = ParseConditionalExpression(scan)
1255 if not right:
1256 return None
1257 left = Operation(left, op, right)
1258 return left
1259
1260
1261def ParseCondition(expr):

Callers 2

ParseAtomicExpressionFunction · 0.85
ParseConditionFunction · 0.85

Calls 5

OperationClass · 0.70
HasMoreMethod · 0.45
CurrentMethod · 0.45
AdvanceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…