MCPcopy
hub / github.com/giancarloerra/SocratiCode / has

Function has

tests/unit/graph-symbols.test.ts:508–509  ·  view source on GitHub ↗
(qn: string, kind: string)

Source from the content-addressed store, hash-verified

506`;
507 const out = extractSymbolsAndCalls(src, "dart" as unknown as Lang, ".dart", "lib/foo.dart");
508 const has = (qn: string, kind: string) =>
509 out.symbols.some((s) => s.qualifiedName === qn && s.kind === kind);
510
511 expect(has("Foo", "class")).toBe(true);
512 // Constructors: plain, named, and factory all resolve as constructors

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected