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

Function parseInterfaceDeclaration

packages/tools/docgen/src/Parser.ts:121–138  ·  view source on GitHub ↗
(id: ast.InterfaceDeclaration)

Source from the content-addressed store, hash-verified

119}
120
121const parseInterfaceDeclaration = (id: ast.InterfaceDeclaration) =>
122 Effect.gen(function*() {
123 const doc = parseDoc(getJSDocText(id.getJsDocs()))
124 if (shouldIgnore(doc)) {
125 return []
126 }
127 const name = id.getName()
128 const signature = id.getText()
129 const position = yield* parsePosition(id)
130 return [
131 new Domain.Interface(
132 name,
133 doc,
134 signature,
135 position
136 )
137 ]
138 })
139
140const parseInterfaceDeclarations = (interfaces: ReadonlyArray<ast.InterfaceDeclaration>) => {
141 const exportedInterfaces = Array.filter(

Callers

nothing calls this directly

Calls 3

parseDocFunction · 0.85
shouldIgnoreFunction · 0.85
parsePositionFunction · 0.85

Tested by

no test coverage detected