MCPcopy Create free account
hub / github.com/effect-app/libs / findClassEnd

Function findClassEnd

packages/eslint-codegen-model/src/cli.ts:200–205  ·  view source on GitHub ↗
(source: string, start: number)

Source from the content-addressed store, hash-verified

198}
199
200function findClassEnd(source: string, start: number): number {
201 const openIndex = findClassBodyOpen(source, start)
202 if (openIndex === -1) return -1
203 const closeIndex = findMatchingBrace(source, openIndex)
204 return closeIndex === -1 ? -1 : closeIndex + 1
205}
206
207function modelSchemaPrefix(classText: string): string {
208 const match = /\bextends\s+((?:[A-Za-z_$][\w$]*\.)?)(?:Opaque|OpaqueType|OpaqueShape)\s*</.exec(classText)

Callers 1

syncFacadeFunction · 0.85

Calls 2

findClassBodyOpenFunction · 0.85
findMatchingBraceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…