MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pyOperator

Function pyOperator

src/graph/branch-guards.ts:1533–1541  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

1531}
1532
1533function pyOperator(node: SyntaxNode): string {
1534 const field = node.childForFieldName('operator');
1535 if (field) return field.text;
1536 for (let i = 0; i < node.childCount; i++) {
1537 const c = node.child(i)!;
1538 if (!c.isNamed && (c.text === 'and' || c.text === 'or')) return c.text;
1539 }
1540 return '';
1541}
1542
1543const PYTHON: Rules = {
1544 boundaries: new Set(['function_definition', 'class_definition', 'module']),

Callers 1

enclosingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected