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

Function isUnbracedControlFlow

packages/tools/doctest/src/Transform.ts:90–100  ·  view source on GitHub ↗
(parent: Node | undefined)

Source from the content-addressed store, hash-verified

88}
89
90const isUnbracedControlFlow = (parent: Node | undefined): boolean =>
91 parent !== undefined && new Set([
92 "DoWhileStatement",
93 "ForInStatement",
94 "ForOfStatement",
95 "ForStatement",
96 "IfStatement",
97 "LabeledStatement",
98 "WhileStatement",
99 "WithStatement"
100 ]).has(parent.type)
101
102const assertionTarget = (
103 source: string,

Callers 1

assertionTargetFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected