cqfn / veniq

Veniq uses Machine Learning to analyze source code, find possible refactorings, and suggest those that seem optimal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lines of insertion are not valid for inner classes

lyriccoder opened this issue · comments

If we have Inner class and it's function name matches the main class name, the line numbers are incorrect

PainlessParser.txt

  '/dataset/01/elastic/elasticsearch/modules/lang-painless/src/main/java/org/elasticsearch/painless/antlr/PainlessParser.java'),
 ('input_filename',
  'data/full_dataset/input_files/PainlessParser_bd33bb08aa9a728098ee1dfb7f9677f9db75a6b3dfa38a21732fa1300b8a0ac4.java'),
 ('class_name', 'PainlessParser'),
 ('invocation_text_string', 'trailer()'),
 ('method_where_invocation_occurred', 'rstatement'),
 ('start_line_of_function_where_invocation_occurred', '317.0'),
 ('invocation_method_name', 'trailer'),
 ('invocation_method_start_line', '422.0'),
 ('invocation_method_end_line', '424.0'),
 ('output_filename',
  'data/full_dataset/output_files/PainlessParser_bd33bb08aa9a728098ee1dfb7f9677f9db75a6b3dfa38a21732fa1300b8a0ac4_rstatement_566.java'),
 ('can_be_parsed', 'True'),
 ('inline_insertion_line_start', '566'),
 ('inline_insertion_line_end', '625'),
 ('project_name', 'elastic/elasticsearch')]```