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

Function parsePosition

packages/tools/docgen/src/Parser.ts:192–199  ·  view source on GitHub ↗
(node: ast.Node)

Source from the content-addressed store, hash-verified

190 })
191
192const parsePosition = (node: ast.Node): Effect.Effect<Domain.Position, never, Source> => {
193 return Effect.gen(function*() {
194 const source = yield* Source
195 const startPos = node.getStart()
196 const position = source.sourceFile.getLineAndColumnAtPos(startPos)
197 return position
198 })
199}
200
201const parseFunctionDeclaration = (fd: ast.FunctionDeclaration) =>
202 Effect.gen(function*() {

Callers 10

parseFunctionDeclarationFunction · 0.85
parseExportSpecifierFunction · 0.85
parseExportStarFunction · 0.85
parseModuleDeclarationFunction · 0.85
parseMethodFunction · 0.85
parsePropertyFunction · 0.85
parseClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected