Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for JavaScript #51

Open
gkorland opened this issue Jan 2, 2025 · 0 comments · May be fixed by #59
Open

Add support for JavaScript #51

gkorland opened this issue Jan 2, 2025 · 0 comments · May be fixed by #59
Labels
enhancement New feature or request

Comments

@gkorland
Copy link
Contributor

gkorland commented Jan 2, 2025

Add support for Code-Graph generation from a JavaScript project using tree-sitter for JavaScript

@gkorland gkorland added the enhancement New feature or request label Jan 2, 2025
gkorland added a commit that referenced this issue Jan 3, 2025
Fixes #51

Add support for JavaScript code analysis using tree-sitter.

* Add `api/analyzers/javascript/analyzer.py` implementing `JavaScriptAnalyzer` class using tree-sitter for JavaScript.
  - Implement methods for first and second pass analysis.
  - Use tree-sitter to parse JavaScript code.
  - Extract functions and classes from JavaScript code.
  - Connect entities in the graph.
* Update `api/analyzers/source_analyzer.py` to include `JavaScriptAnalyzer` in the analyzers list.
* Add `tree-sitter-javascript` dependency to `pyproject.toml`.
* Add utility functions for JavaScript analysis in `api/analyzers/utils.py`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/FalkorDB/code-graph-backend/issues/51?shareId=XXXX-XXXX-XXXX-XXXX).
@gkorland gkorland linked a pull request Jan 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant