UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

15 lines (13 loc) 350 B
/** * @file Get line number from AST node * @description Single responsibility: Extract line number from an AST node */ /** * Get the line number from an AST node * @param {Object} node - AST node * @returns {number} Line number */ function getLineNumber(node) { return node.loc ? node.loc.start.line : 0; } module.exports = getLineNumber;