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

Function isStatement

packages/tools/doctest/src/Transform.ts:47–47  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

45 "end" in value && typeof value.end === "number"
46
47const isStatement = (node: Node): boolean => node.type.endsWith("Statement") || statementTypes.has(node.type)
48
49const collect = (program: ESTree.Program): { readonly candidates: Array<Candidate>; readonly names: Set<string> } => {
50 const candidates: Array<Candidate> = []

Callers 1

visitFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected