gitnexus 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,7 +195,8 @@ const findEnclosingFunctionId = (node, filePath) => {
|
|
|
195
195
|
if (current.type === 'init_declaration' || current.type === 'deinit_declaration') {
|
|
196
196
|
const funcName = current.type === 'init_declaration' ? 'init' : 'deinit';
|
|
197
197
|
const label = 'Constructor';
|
|
198
|
-
|
|
198
|
+
const startLine = current.startPosition?.row ?? 0;
|
|
199
|
+
return generateId(label, `${filePath}:${funcName}:${startLine}`);
|
|
199
200
|
}
|
|
200
201
|
if (['function_declaration', 'function_definition', 'async_function_declaration',
|
|
201
202
|
'generator_function_declaration', 'function_item'].includes(current.type)) {
|
|
@@ -233,7 +234,8 @@ const findEnclosingFunctionId = (node, filePath) => {
|
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
if (funcName) {
|
|
236
|
-
|
|
237
|
+
const startLine = current.startPosition?.row ?? 0;
|
|
238
|
+
return generateId(label, `${filePath}:${funcName}:${startLine}`);
|
|
237
239
|
}
|
|
238
240
|
}
|
|
239
241
|
current = current.parent;
|
package/package.json
CHANGED