MCPcopy Create free account
hub / github.com/Effect-TS/effect / fail

Function fail

packages/tools/doctest/src/Transform.ts:86–88  ·  view source on GitHub ↗
(source: string, offset: number, file: string, line: number, message: string)

Source from the content-addressed store, hash-verified

84}
85
86const fail = (source: string, offset: number, file: string, line: number, message: string): never => {
87 throw new Error(`${location(source, offset, file, line)} ${message}`)
88}
89
90const isUnbracedControlFlow = (parent: Node | undefined): boolean =>
91 parent !== undefined && new Set([

Callers 3

assertionTargetFunction · 0.70
parseExpectedFunction · 0.70
transformFunction · 0.70

Calls 1

locationFunction · 0.85

Tested by

no test coverage detected