File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ */
135135export function extractBodyMembers (
136136 containerNode : TreeSitterNode ,
137137 bodyFields : readonly string [ ] ,
You can’t perform that action at this time.
0 commit comments