@@ -211,7 +211,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
211211 */
212212 ClassDeclaration ( path ) {
213213 if ( path . node . loc && path . node . loc . start . line <= targetLine && path . node . loc . end . line >= targetLine ) {
214- console . log ( `class declaration: loc: ${ path . node . loc } , targetLine: ${ targetLine } , node.start.line: ${ path . node . loc . start . line } , node.end.line: ${ path . node . loc . end . line } ` ) ;
214+ // console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
215215
216216 className = path . node . id . name || null ;
217217 }
@@ -224,7 +224,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
224224 */
225225 ClassMethod ( path ) {
226226 if ( path . node . loc && path . node . loc . start . line <= targetLine && path . node . loc . end . line >= targetLine ) {
227- console . log ( `class declaration: loc: ${ path . node . loc } , targetLine: ${ targetLine } , node.start.line: ${ path . node . loc . start . line } , node.end.line: ${ path . node . loc . end . line } ` ) ;
227+ // console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
228228
229229 // Handle different key types
230230 if ( path . node . key . type === 'Identifier' ) {
@@ -240,7 +240,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
240240 */
241241 FunctionDeclaration ( path ) {
242242 if ( path . node . loc && path . node . loc . start . line <= targetLine && path . node . loc . end . line >= targetLine ) {
243- console . log ( `function declaration: loc: ${ path . node . loc } , targetLine: ${ targetLine } , node.start.line: ${ path . node . loc . start . line } , node.end.line: ${ path . node . loc . end . line } ` ) ;
243+ // console.log(`function declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
244244
245245 functionName = path . node . id . name || null ;
246246 isAsync = path . node . async ;
@@ -259,7 +259,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
259259 path . node . loc . start . line <= targetLine &&
260260 path . node . loc . end . line >= targetLine
261261 ) {
262- console . log ( `variable declaration: node.type: ${ path . node . init . type } , targetLine: ${ targetLine } , ` ) ;
262+ // console.log(`variable declaration: node.type: ${path.node.init.type}, targetLine: ${targetLine}, `);
263263
264264 // Handle different id types
265265 if ( path . node . id . type === 'Identifier' ) {
0 commit comments