Skip to content

Commit 2848205

Browse files
authored
refactor: address quality warnings in shared modules (#770)
* refactor: address quality warnings * fix: resolve TS error in parenDepthDelta and restore orphaned JSDoc * fix: remove duplicate resolveBodyNode from merge (#770)
1 parent 58a8d1b commit 2848205

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/extractors/helpers.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@ export function findParentNode(
110110
return null;
111111
}
112112

113-
/**
114-
* Extract child declarations from a container node's body.
115-
* Finds the body via `bodyFields` (tries childForFieldName then findChild for each),
116-
* iterates its children, filters by `memberType`, extracts `nameField`, and returns SubDeclarations.
117-
*
118-
* Replaces per-language extractStructFields / extractEnumVariants / extractEnumConstants helpers
119-
* for the common case where each member has a direct name field.
120-
*/
121113
/**
122114
* Resolve a container's body node by trying each field name in order.
123115
*/
@@ -132,6 +124,14 @@ function resolveBodyNode(
132124
return null;
133125
}
134126

127+
/**
128+
* Extract child declarations from a container node's body.
129+
* Finds the body via `bodyFields` (tries childForFieldName then findChild for each),
130+
* iterates its children, filters by `memberType`, extracts `nameField`, and returns SubDeclarations.
131+
*
132+
* Replaces per-language extractStructFields / extractEnumVariants / extractEnumConstants helpers
133+
* for the common case where each member has a direct name field.
134+
*/
135135
export function extractBodyMembers(
136136
containerNode: TreeSitterNode,
137137
bodyFields: readonly string[],

0 commit comments

Comments
 (0)