MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / isSimpleRef

Function isSimpleRef

masfactory-visualizer/src/parser/moduleLevelParser.ts:356–357  ·  view source on GitHub ↗
(n: TSNode)

Source from the content-addressed store, hash-verified

354
355 // Handle simple variable aliasing: node_b = node_a (or self._node_b = node_a)
356 const isSimpleRef = (n: TSNode): boolean =>
357 n.type === 'identifier' || n.type === 'attribute';
358
359 if (isSimpleRef(leftSide) && isSimpleRef(rightSide)) {
360 const leftText = getNodeText(leftSide, code).trim();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected