From db95fb20787a8c723421ea8e543a569e0389454d Mon Sep 17 00:00:00 2001 From: "LINKJOIN\\johnnytsai" Date: Tue, 23 Jun 2026 09:45:29 +0800 Subject: [PATCH] feat(razor): index inline \n` + ); + + cg = CodeGraph.initSync(tempDir); + await cg.indexAll(); + cg.resolveReferences(); + + const helper = cg.getNodesByKind('function').find((n) => n.name === 'showToast'); + expect(helper, 'showToast function').toBeDefined(); + const deps = [...cg.getImpactRadius(helper!.id, 2).nodes.values()].map((n) => n.filePath ?? ''); + expect(deps.some((p) => p.endsWith('Order.cshtml')), 'inline