Skip to content

Commit 85b6680

Browse files
style: remove duplicate parser property in TreeSitterAnalyzer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 73584bc commit 85b6680

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

codeflash/languages/javascript/treesitter.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,21 +1772,6 @@ def _extract_type_definition(
17721772
)
17731773

17741774

1775-
@property
1776-
def parser(self) -> Parser:
1777-
"""
1778-
Lazily create and cache a tree-sitter Parser instance.
1779-
1780-
Returns:
1781-
Cached Parser instance.
1782-
"""
1783-
if self._parser is None:
1784-
# Create a Parser instance on first access and cache it.
1785-
# Note: language setup (e.g., set_language) may be handled externally.
1786-
self._parser = Parser()
1787-
return self._parser
1788-
1789-
17901775
def get_analyzer_for_file(file_path: Path) -> TreeSitterAnalyzer:
17911776
"""Get the appropriate TreeSitterAnalyzer for a file based on its extension.
17921777

0 commit comments

Comments
 (0)