Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit abaeea8

Browse files
author
Hamel Husain
authored
Merge pull request #220 from dongs0104/master
Change py-tree-sitter type
2 parents a30bf0c + 50a6527 commit abaeea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_parser/function_parser/parsers/java_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_function_metadata(function_node, blob: str) -> Dict[str, str]:
7878
}
7979

8080
declarators = []
81-
traverse_type(function_node, declarators, '{}_declarator'.format(function_node.type.split('_')[0]))
81+
traverse_type(function_node, declarators, '{}_declaration'.format(function_node.type.split('_')[0]))
8282
parameters = []
8383
for n in declarators[0].children:
8484
if n.type == 'identifier':

0 commit comments

Comments
 (0)