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

Function isVariableStatement

packages/tools/docgen/src/Parser.ts:95–101  ·  view source on GitHub ↗
(
  u:
    | ast.VariableStatement
    | ast.ForStatement
    | ast.ForOfStatement
    | ast.ForInStatement
)

Source from the content-addressed store, hash-verified

93): u is ast.VariableDeclarationList => u.getKind() === ast.ts.SyntaxKind.VariableDeclarationList
94
95const isVariableStatement = (
96 u:
97 | ast.VariableStatement
98 | ast.ForStatement
99 | ast.ForOfStatement
100 | ast.ForInStatement
101): u is ast.VariableStatement => u.getKind() === ast.ts.SyntaxKind.VariableStatement
102
103const parseDoc = (text: string) => {
104 const comment = parseComment(text)

Callers 1

Parser.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected