diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml
index 4bb44ea1d..1ea8d4548 100644
--- a/.github/workflows/generate-docs.yml
+++ b/.github/workflows/generate-docs.yml
@@ -22,16 +22,16 @@ jobs:
uses: ./.github/actions/setup-environment
- name: Generate API reference
- run: uv run python src/graph-sitter/gscli/cli.py generate docs
+ run: uv run python src/graph_sitter/gscli/cli.py generate docs
- name: Generate System Prompt
- run: uv run python src/graph-sitter/gscli/cli.py generate system-prompt
+ run: uv run python src/graph_sitter/gscli/cli.py generate system-prompt
- name: Commit changes
run: |
git config --local user.email ${{ secrets.DOCS_USER_EMAIL }}
git config --local user.name ${{ secrets.DOCS_USER_NAME }}
- git add docs/ src/codegen/sdk/system-prompt.txt
+ git add docs/ src/graph_sitter/system-prompt.txt
git diff --staged --quiet || git commit -m "docs: updated API reference"
- name: Push changes
diff --git a/README.md b/README.md
index 86fad5318..bb0edbcf2 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
[](https://pypi.org/project/codegen/)
-[](https://docs.codegen.com)
+[](https://graph-sitter.com)
[](https://community.codegen.com)
[](https://github.com/codegen-sh/graph-sitter/tree/develop?tab=Apache-2.0-1-ov-file)
[](https://x.com/codegen)
@@ -22,7 +22,7 @@
-[Codegen](https://docs.codegen.com) is a python library for manipulating codebases.
+[Codegen](https://graph-sitter.com) is a python library for manipulating codebases.
```python
from codegen import Codebase
@@ -49,7 +49,7 @@ We support
- macOS and Linux
- macOS is supported
- Linux is supported on x86_64 and aarch64 with glibc 2.34+
- - Windows is supported via WSL. See [here](https://docs.codegen.com/building-with-codegen/codegen-with-wsl) for more details.
+ - Windows is supported via WSL. See [here](https://graph-sitter.com/building-with-codegen/codegen-with-wsl) for more details.
- Python, Typescript, Javascript and React codebases
```
@@ -73,7 +73,7 @@ gs notebook
## Usage
-See [Getting Started](https://docs.codegen.com/introduction/getting-started) for a full tutorial.
+See [Getting Started](https://graph-sitter.com/introduction/getting-started) for a full tutorial.
```
from codegen import Codebase
@@ -91,8 +91,8 @@ If you run into additional issues not listed here, please [join our slack commun
## Resources
-- [Docs](https://docs.codegen.com)
-- [Getting Started](https://docs.codegen.com/introduction/getting-started)
+- [Docs](https://graph-sitter.com)
+- [Getting Started](https://graph-sitter.com/introduction/getting-started)
- [Contributing](CONTRIBUTING.md)
- [Contact Us](https://codegen.com/contact)
diff --git a/codegen-examples/README.md b/codegen-examples/README.md
index d13002076..6416792ea 100644
--- a/codegen-examples/README.md
+++ b/codegen-examples/README.md
@@ -1,6 +1,6 @@
# Codegen Examples
-[](https://docs.codegen.com)
+[](https://graph-sitter.com)
This is a collection of examples using [Codegen](https://codegen.com). You can use these examples to learn how to use Codegen and build custom code transformations.
@@ -8,7 +8,7 @@ This is a collection of examples using [Codegen](https://codegen.com). You can u
We recommend using [`uv`](https://github.com/astral-sh/uv) with Python 3.13 for the best experience.
-To install Codegen, please follow the [official installation guide](https://docs.codegen.com/introduction/installation). Once Codegen is installed, use these steps to run the examples in this repository:
+To install Codegen, please follow the [official installation guide](https://graph-sitter.com/introduction/installation). Once Codegen is installed, use these steps to run the examples in this repository:
Install the graph_sitter.cli globally
@@ -32,7 +32,7 @@ Your environment is now ready to run example codemods.
### IDE Configuration (Optional)
-To configure your IDE for optimal use with Codegen, follow our [IDE setup guide](https://docs.codegen.com/introduction/ide-usage#configuring-your-ide-interpreter).
+To configure your IDE for optimal use with Codegen, follow our [IDE setup guide](https://graph-sitter.com/introduction/ide-usage#configuring-your-ide-interpreter).
## Examples
@@ -46,10 +46,10 @@ To see a transformation, simply run the `run.py` script within the desired direc
## Learn More
-- [Documentation](https://docs.codegen.com)
-- [Getting Started Guide](https://docs.codegen.com/introduction/getting-started)
-- [Tutorials](https://docs.codegen.com/tutorials/at-a-glance)
-- [API Reference](https://docs.codegen.com/api-reference)
+- [Documentation](https://graph-sitter.com)
+- [Getting Started Guide](https://graph-sitter.com/introduction/getting-started)
+- [Tutorials](https://graph-sitter.com/tutorials/at-a-glance)
+- [API Reference](https://graph-sitter.com/api-reference)
## Contributing
diff --git a/codegen-examples/examples/ai_impact_analysis/README.md b/codegen-examples/examples/ai_impact_analysis/README.md
index e34e1a8af..e3847b7d5 100644
--- a/codegen-examples/examples/ai_impact_analysis/README.md
+++ b/codegen-examples/examples/ai_impact_analysis/README.md
@@ -116,8 +116,8 @@ After running the analysis, symbols in the codebase will have the following attr
## Learn More
-- [Attributions](https://docs.codegen.com/tutorials/attributions)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Attributions](https://graph-sitter.com/tutorials/attributions)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/ai_impact_analysis/dashboard/README.md b/codegen-examples/examples/ai_impact_analysis/dashboard/README.md
index cde758b55..4acd07da4 100644
--- a/codegen-examples/examples/ai_impact_analysis/dashboard/README.md
+++ b/codegen-examples/examples/ai_impact_analysis/dashboard/README.md
@@ -78,8 +78,8 @@ The dashboard will display:
## Learn More
-- [AI Impact Analysis Documentation](https://docs.codegen.com/tutorials/attributions)
-- [Codegen Documentation](https://docs.codegen.com)
+- [AI Impact Analysis Documentation](https://graph-sitter.com/tutorials/attributions)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/codegen-mcp-server/README.md b/codegen-examples/examples/codegen-mcp-server/README.md
index f56558d11..79842029c 100644
--- a/codegen-examples/examples/codegen-mcp-server/README.md
+++ b/codegen-examples/examples/codegen-mcp-server/README.md
@@ -1,7 +1,7 @@
# Codegen MCP Server
-
+
@@ -13,7 +13,7 @@
-[](https://docs.codegen.com)
+[](https://graph-sitter.com)
[](https://github.com/codegen-sh/graph-sitter/tree/develop?tab=Apache-2.0-1-ov-file)
diff --git a/codegen-examples/examples/codegen-mcp-server/llms-install.md b/codegen-examples/examples/codegen-mcp-server/llms-install.md
index b01cdddcb..03d5312c7 100644
--- a/codegen-examples/examples/codegen-mcp-server/llms-install.md
+++ b/codegen-examples/examples/codegen-mcp-server/llms-install.md
@@ -4,7 +4,7 @@ Please read two things before trying to install this codegen MCP server:
- This contains the instructions for setting up the mcp server
-2. [Documentation Index for Agents](https://docs.codegen.com/llms.txt)
+2. [Documentation Index for Agents](https://graph-sitter.com/llms.txt)
- This contains a list of urls to the documentation for topics related to creating codegen codemods
@@ -12,6 +12,6 @@ Please use a CURL command to retrieve the contents of the readme and documentati
1. curl -sL "https://raw.githubusercontent.com/codegen-sh/graph-sitter/refs/heads/develop/README.md" | cat
-1. curl -sL "https://docs.codegen.com/llms.txt" | cat
+1. curl -sL "https://graph-sitter.com/llms.txt" | cat
This should give you all the context you need to successfully install and utilize the server.
diff --git a/codegen-examples/examples/cyclomatic_complexity/README.md b/codegen-examples/examples/cyclomatic_complexity/README.md
index 1115d8d9d..9c6c1239a 100644
--- a/codegen-examples/examples/cyclomatic_complexity/README.md
+++ b/codegen-examples/examples/cyclomatic_complexity/README.md
@@ -141,7 +141,7 @@ python run.py
## Learn More
- [About Cyclomatic Complexity](https://en.wikipedia.org/wiki/Cyclomatic_complexity)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/delete_dead_code/README.md b/codegen-examples/examples/delete_dead_code/README.md
index 71afed02b..824715d3c 100644
--- a/codegen-examples/examples/delete_dead_code/README.md
+++ b/codegen-examples/examples/delete_dead_code/README.md
@@ -74,8 +74,8 @@ python run.py
## Learn More
-- [Deleting Dead Code](https://docs.codegen.com/tutorials/deleting-dead-code)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Deleting Dead Code](https://graph-sitter.com/tutorials/deleting-dead-code)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/dict_to_schema/README.md b/codegen-examples/examples/dict_to_schema/README.md
index ee9f6d93a..b9c43135d 100644
--- a/codegen-examples/examples/dict_to_schema/README.md
+++ b/codegen-examples/examples/dict_to_schema/README.md
@@ -102,7 +102,7 @@ python run.py
## Learn More
- [Pydantic Documentation](https://docs.pydantic.dev/)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/document_functions/README.md b/codegen-examples/examples/document_functions/README.md
index 38db37e56..0fb09d855 100644
--- a/codegen-examples/examples/document_functions/README.md
+++ b/codegen-examples/examples/document_functions/README.md
@@ -92,8 +92,8 @@ The script provides detailed progress information:
## Learn More
-- [Creating Documentation](https://docs.codegen.com/tutorials/creating-documentation#creating-documentation)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Creating Documentation](https://graph-sitter.com/tutorials/creating-documentation#creating-documentation)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/flask_to_fastapi_migration/README.md b/codegen-examples/examples/flask_to_fastapi_migration/README.md
index 0efbf3360..c787b38ed 100644
--- a/codegen-examples/examples/flask_to_fastapi_migration/README.md
+++ b/codegen-examples/examples/flask_to_fastapi_migration/README.md
@@ -1,8 +1,8 @@
# Flask to FastAPI Migration Example
-[](https://docs.codegen.com/tutorials/flask-to-fastapi)
+[](https://graph-sitter.com/tutorials/flask-to-fastapi)
-This example demonstrates how to use Codegen to automatically migrate a Flask application to FastAPI. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/flask-to-fastapi).
+This example demonstrates how to use Codegen to automatically migrate a Flask application to FastAPI. For a complete walkthrough, check out our [tutorial](https://graph-sitter.com/tutorials/flask-to-fastapi).
## What This Example Does
@@ -70,7 +70,7 @@ The script will process all Python files in the `repo-before` directory and appl
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/flask-to-fastapi)
+- [Full Tutorial](https://graph-sitter.com/tutorials/flask-to-fastapi)
- [Flask Documentation](https://flask.palletsprojects.com/)
- [FastAPI Documentation](https://fastapi.tiangolo.com/)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
diff --git a/codegen-examples/examples/fragment_to_shorthand/README.md b/codegen-examples/examples/fragment_to_shorthand/README.md
index 4e1534e46..ff303f743 100644
--- a/codegen-examples/examples/fragment_to_shorthand/README.md
+++ b/codegen-examples/examples/fragment_to_shorthand/README.md
@@ -65,8 +65,8 @@ The script will:
- [React Fragments](https://react.dev/reference/react/Fragment)
- [JSX Fragments](https://react.dev/reference/jsx#jsx-fragments)
-- [Codegen Documentation](https://docs.codegen.com)
-- [More on Codegen SDK jsx elements API](https://docs.codegen.com/api-reference/typescript/JSXElement#jsxelement)
+- [Codegen Documentation](https://graph-sitter.com)
+- [More on Codegen SDK jsx elements API](https://graph-sitter.com/api-reference/typescript/JSXElement#jsxelement)
## Contributing
diff --git a/codegen-examples/examples/freezegun_to_timemachine_migration/README.md b/codegen-examples/examples/freezegun_to_timemachine_migration/README.md
index 90c515ab2..5028b16c8 100644
--- a/codegen-examples/examples/freezegun_to_timemachine_migration/README.md
+++ b/codegen-examples/examples/freezegun_to_timemachine_migration/README.md
@@ -145,7 +145,7 @@ python run.py
- [TimeMachine Documentation](https://github.com/adamchainz/time-machine)
- [FreezeGun Documentation](https://github.com/spulec/freezegun)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/generate_training_data/README.md b/codegen-examples/examples/generate_training_data/README.md
index 48d42ecac..7085cd22e 100644
--- a/codegen-examples/examples/generate_training_data/README.md
+++ b/codegen-examples/examples/generate_training_data/README.md
@@ -1,6 +1,6 @@
# Generate Codebase Pre-Training Data
-[](https://docs.codegen.com/tutorials/generate-training-data)
+[](https://graph-sitter.com/tutorials/generate-training-data)
This example demonstrates how to use Codegen to generate training data for large-scale LLM pre-training by extracting function implementations along with their dependencies and usages. The approach is inspired by node2vec, leveraging code graphs for learning.
@@ -87,6 +87,6 @@ The generated `training_data.json` follows this structure:
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/generate-training-data)
-- [Code Model Pre-training](https://docs.codegen.com/concepts/code-model-training)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Full Tutorial](https://graph-sitter.com/tutorials/generate-training-data)
+- [Code Model Pre-training](https://graph-sitter.com/concepts/code-model-training)
+- [Codegen Documentation](https://graph-sitter.com)
diff --git a/codegen-examples/examples/github_checks/README.md b/codegen-examples/examples/github_checks/README.md
index 605532669..6fed3dab6 100644
--- a/codegen-examples/examples/github_checks/README.md
+++ b/codegen-examples/examples/github_checks/README.md
@@ -102,8 +102,8 @@ The analysis results are posted as a markdown-formatted comment on the pull requ
## Learn More
-- [Codegen Documentation](https://docs.codegen.com)
-- [Detecting Import Loops](https://docs.codegen.com/blog/fixing-import-loops)
+- [Codegen Documentation](https://graph-sitter.com)
+- [Detecting Import Loops](https://graph-sitter.com/blog/fixing-import-loops)
## Contributing
diff --git a/codegen-examples/examples/modal_repo_rag/README.md b/codegen-examples/examples/modal_repo_rag/README.md
index 5209e7529..ede3c3514 100644
--- a/codegen-examples/examples/modal_repo_rag/README.md
+++ b/codegen-examples/examples/modal_repo_rag/README.md
@@ -1,7 +1,7 @@
# Codegen RAG Q&A API
-
+
@@ -12,7 +12,7 @@
-[](https://docs.codegen.com)
+[](https://graph-sitter.com)
[](https://github.com/codegen-sh/graph-sitter/tree/develop?tab=Apache-2.0-1-ov-file)
@@ -115,6 +115,6 @@ Required environment variables:
## Learn More
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
- [Modal Documentation](https://modal.com/docs)
-- [VectorIndex Tutorial](https://docs.codegen.com/building-with-codegen/semantic-code-search)
+- [VectorIndex Tutorial](https://graph-sitter.com/building-with-codegen/semantic-code-search)
diff --git a/codegen-examples/examples/modules_dependencies/README.md b/codegen-examples/examples/modules_dependencies/README.md
index 2fde86e49..168d23491 100644
--- a/codegen-examples/examples/modules_dependencies/README.md
+++ b/codegen-examples/examples/modules_dependencies/README.md
@@ -134,8 +134,8 @@ You can customize the analysis by:
- [NetworkX Documentation](https://networkx.org/)
- [Python Import System](https://docs.python.org/3/reference/import.html)
-- [Codegen Documentation](https://docs.codegen.com)
-- [Graph visualization](https://docs.codegen.com/building-with-codegen/codebase-visualization)
+- [Codegen Documentation](https://graph-sitter.com)
+- [Graph visualization](https://graph-sitter.com/building-with-codegen/codebase-visualization)
## Contributing
diff --git a/codegen-examples/examples/openapi_decorators/README.md b/codegen-examples/examples/openapi_decorators/README.md
index f4e407a9e..f97183011 100644
--- a/codegen-examples/examples/openapi_decorators/README.md
+++ b/codegen-examples/examples/openapi_decorators/README.md
@@ -144,7 +144,7 @@ The script will:
- [Flask-RESTx Documentation](https://flask-restx.readthedocs.io/)
- [OpenAPI Specification](https://swagger.io/specification/)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/python2_to_python3/README.md b/codegen-examples/examples/python2_to_python3/README.md
index 9d11f62ce..d15e51a6f 100644
--- a/codegen-examples/examples/python2_to_python3/README.md
+++ b/codegen-examples/examples/python2_to_python3/README.md
@@ -1,8 +1,8 @@
# Python 2 to Python 3 Migration Example
-[](https://docs.codegen.com/tutorials/python2-to-python3)
+[](https://graph-sitter.com/tutorials/python2-to-python3)
-This example demonstrates how to use Codegen to automatically migrate Python 2 code to Python 3. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/python2-to-python3).
+This example demonstrates how to use Codegen to automatically migrate Python 2 code to Python 3. For a complete walkthrough, check out our [tutorial](https://graph-sitter.com/tutorials/python2-to-python3).
## What This Example Does
@@ -94,7 +94,7 @@ The script will process all Python files in the `repo-before` directory and appl
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/python2-to-python3)
+- [Full Tutorial](https://graph-sitter.com/tutorials/python2-to-python3)
- [Python 3 Documentation](https://docs.python.org/3/)
- [What's New in Python 3](https://docs.python.org/3/whatsnew/3.0.html)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
diff --git a/codegen-examples/examples/reexport_management/README.md b/codegen-examples/examples/reexport_management/README.md
index 4ecc7f986..92c6d988d 100644
--- a/codegen-examples/examples/reexport_management/README.md
+++ b/codegen-examples/examples/reexport_management/README.md
@@ -115,9 +115,9 @@ The script will:
- [TypeScript Modules](https://www.typescriptlang.org/docs/handbook/modules.html)
- [Export/Import Documentation](https://www.typescriptlang.org/docs/handbook/modules.html#export)
-- [Codegen Documentation](https://docs.codegen.com)
-- [Tutorial on Analyzing and Organizing Re-exports](https://docs.codegen.com/tutorials/managing-typescript-exports)
-- [More on exports ](https://docs.codegen.com/building-with-codegen/exports)
+- [Codegen Documentation](https://graph-sitter.com)
+- [Tutorial on Analyzing and Organizing Re-exports](https://graph-sitter.com/tutorials/managing-typescript-exports)
+- [More on exports ](https://graph-sitter.com/building-with-codegen/exports)
## Contributing
diff --git a/codegen-examples/examples/remove_default_exports/README.md b/codegen-examples/examples/remove_default_exports/README.md
index 52009723e..9a5aad64e 100644
--- a/codegen-examples/examples/remove_default_exports/README.md
+++ b/codegen-examples/examples/remove_default_exports/README.md
@@ -65,7 +65,7 @@ python run.py
## Learn More
- [TypeScript Documentation](https://www.typescriptlang.org/docs/)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/repo_analytics/README.md b/codegen-examples/examples/repo_analytics/README.md
index 55e7a83a4..df0fe32eb 100644
--- a/codegen-examples/examples/repo_analytics/README.md
+++ b/codegen-examples/examples/repo_analytics/README.md
@@ -1,6 +1,6 @@
# Repository Analytics
-This example demonstrates how to use Codegen to analyze repository metrics and generate comprehensive codebase analytics. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/codebase-analytics-dashboard).
+This example demonstrates how to use Codegen to analyze repository metrics and generate comprehensive codebase analytics. For a complete walkthrough, check out our [tutorial](https://graph-sitter.com/tutorials/codebase-analytics-dashboard).
## How the Analytics Script Works
@@ -132,8 +132,8 @@ The script will output a detailed report including:
## Learn More
-- [Analytics Tutorial](https://docs.codegen.com/tutorials/codebase-analytics-dashboard)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Analytics Tutorial](https://graph-sitter.com/tutorials/codebase-analytics-dashboard)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/slack_chatbot/README.md b/codegen-examples/examples/slack_chatbot/README.md
index e917abdfc..21ec87ee6 100644
--- a/codegen-examples/examples/slack_chatbot/README.md
+++ b/codegen-examples/examples/slack_chatbot/README.md
@@ -1,7 +1,7 @@
# Codegen Slack Bot
-
+
@@ -12,7 +12,7 @@
-[](https://docs.codegen.com)
+[](https://graph-sitter.com)
[](https://github.com/codegen-sh/graph-sitter/tree/develop?tab=Apache-2.0-1-ov-file)
@@ -115,7 +115,7 @@ modal deploy api.py
## Learn More
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
- [Slack Bolt Python](https://slack.dev/bolt-python/concepts)
- [Modal Documentation](https://modal.com/docs)
-- [VectorIndex Tutorial](https://docs.codegen.com/building-with-codegen/semantic-code-search)
+- [VectorIndex Tutorial](https://graph-sitter.com/building-with-codegen/semantic-code-search)
diff --git a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
index 6385eb110..24b8e4ee1 100644
--- a/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
+++ b/codegen-examples/examples/sqlalchemy_1.6_to_2.0/README.md
@@ -1,8 +1,8 @@
# SQLAlchemy 1.4 to 2.0 Migration Example
-[](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0)
+[](https://graph-sitter.com/tutorials/sqlalchemy-1.4-to-2.0)
-This example demonstrates how to use Codegen to automatically migrate SQLAlchemy 1.4 code to the new 2.0-style query interface. For a complete walkthrough, check out our [tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0).
+This example demonstrates how to use Codegen to automatically migrate SQLAlchemy 1.4 code to the new 2.0-style query interface. For a complete walkthrough, check out our [tutorial](https://graph-sitter.com/tutorials/sqlalchemy-1.4-to-2.0).
## How the Migration Script Works
@@ -94,10 +94,10 @@ python run.py
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/sqlalchemy-1.4-to-2.0)
+- [Full Tutorial](https://graph-sitter.com/tutorials/sqlalchemy-1.4-to-2.0)
- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/en/20/)
- [What's New in SQLAlchemy 2.0](https://docs.sqlalchemy.org/en/20/changelog/migration_20.html)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/sqlalchemy_soft_delete/README.md b/codegen-examples/examples/sqlalchemy_soft_delete/README.md
index 52087e2e0..8650236c3 100644
--- a/codegen-examples/examples/sqlalchemy_soft_delete/README.md
+++ b/codegen-examples/examples/sqlalchemy_soft_delete/README.md
@@ -147,7 +147,7 @@ python run.py
## Learn More
- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/en/20/)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/sqlalchemy_type_annotations/README.md b/codegen-examples/examples/sqlalchemy_type_annotations/README.md
index ea1df9940..6c64b7325 100644
--- a/codegen-examples/examples/sqlalchemy_type_annotations/README.md
+++ b/codegen-examples/examples/sqlalchemy_type_annotations/README.md
@@ -147,7 +147,7 @@ python run.py
- [SQLAlchemy 2.0 Documentation](https://docs.sqlalchemy.org/en/20/)
- [SQLAlchemy Type Annotations Guide](https://docs.sqlalchemy.org/en/20/orm/typing.html)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/symbol-attributions/README.md b/codegen-examples/examples/symbol-attributions/README.md
index a44d73a69..501b0a393 100644
--- a/codegen-examples/examples/symbol-attributions/README.md
+++ b/codegen-examples/examples/symbol-attributions/README.md
@@ -84,8 +84,8 @@ The script will automatically:
## Learn More
-- [Codegen Symbols](https://docs.codegen.com/api-reference/core/Symbol#symbol)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Symbols](https://graph-sitter.com/api-reference/core/Symbol#symbol)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/unittest_to_pytest/README.md b/codegen-examples/examples/unittest_to_pytest/README.md
index 7503b58be..1a3cec119 100644
--- a/codegen-examples/examples/unittest_to_pytest/README.md
+++ b/codegen-examples/examples/unittest_to_pytest/README.md
@@ -105,10 +105,10 @@ The script will process all Python test files in the `repo-before` directory and
## Learn More
-- [Full Tutorial](https://docs.codegen.com/tutorials/unittest-to-pytest)
+- [Full Tutorial](https://graph-sitter.com/tutorials/unittest-to-pytest)
- [pytest Documentation](https://docs.pytest.org/)
- [unittest Documentation](https://docs.python.org/3/library/unittest.html)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/usesuspensequery_to_usesuspensequeries/README.md b/codegen-examples/examples/usesuspensequery_to_usesuspensequeries/README.md
index 4ec033802..2d1b94210 100644
--- a/codegen-examples/examples/usesuspensequery_to_usesuspensequeries/README.md
+++ b/codegen-examples/examples/usesuspensequery_to_usesuspensequeries/README.md
@@ -114,7 +114,7 @@ The script will:
- [React Query Documentation](https://tanstack.com/query/latest)
- [useSuspenseQueries API](https://tanstack.com/query/latest/docs/react/reference/useSuspenseQueries)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/codegen-examples/examples/visualize_codebases/README.md b/codegen-examples/examples/visualize_codebases/README.md
index f8bdab75a..2db79e58f 100644
--- a/codegen-examples/examples/visualize_codebases/README.md
+++ b/codegen-examples/examples/visualize_codebases/README.md
@@ -167,8 +167,8 @@ After running a script, you'll get a graph object containing node and edge relat
## Learn More
-- [Codebase Visualization Documentation](https://docs.codegen.com/tutorials/codebase-visualization)
-- [Codegen Documentation](https://docs.codegen.com)
+- [Codebase Visualization Documentation](https://graph-sitter.com/tutorials/codebase-visualization)
+- [Codegen Documentation](https://graph-sitter.com)
## Contributing
diff --git a/docs/agents/create-agent-run.mdx b/docs/agents/create-agent-run.mdx
deleted file mode 100644
index e6af99b0c..000000000
--- a/docs/agents/create-agent-run.mdx
+++ /dev/null
@@ -1,3 +0,0 @@
----
-openapi: post /v1/organizations/{org_id}/agent/run
----
\ No newline at end of file
diff --git a/docs/agents/get-agent-run.mdx b/docs/agents/get-agent-run.mdx
deleted file mode 100644
index 5b9e68106..000000000
--- a/docs/agents/get-agent-run.mdx
+++ /dev/null
@@ -1,3 +0,0 @@
----
-openapi: get /v1/organizations/{org_id}/agent/run/{agent_run_id}
----
\ No newline at end of file
diff --git a/docs/api-reference/core/Argument.mdx b/docs/api-reference/core/Argument.mdx
index 83aab527d..1cc0c1ae8 100644
--- a/docs/api-reference/core/Argument.mdx
+++ b/docs/api-reference/core/Argument.mdx
@@ -11,7 +11,7 @@ import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx';
import {GithubLinkNote} from '/snippets/GithubLinkNote.mdx';
import {Attribute} from '/snippets/Attribute.mdx';
-
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName), [Editable](/api-reference/core/Editable)
@@ -95,7 +95,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
###
add_keyword
Converts an unnamed argument to a named argument by adding a keyword.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -120,7 +120,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Argument ]> } description=""/>
@@ -209,7 +209,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -217,7 +217,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -330,7 +330,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -338,7 +338,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -346,7 +346,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -354,7 +354,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -362,7 +362,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Sets the name of an object and updates all its usages.
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_name
Sets the name of a code element.
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Typeable](/api-reference/core/Typeable), [Symbol](/api-reference/core/Symbol), [Usable](/api-reference/core/Usable), [Editable](/api-reference/core/Editable), [Importable](/api-reference/core/Importable), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName)
@@ -115,7 +115,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_comment
Adds a comment to the symbol.
-
+
add_keyword
Insert a keyword in the appropriate place before this symbol if it doesn't already exist.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -157,7 +157,7 @@ Find all ancestors of the node of the given type. Does not return itself
### dependencies
Returns a list of symbols that this symbol depends on.
-
+
edit
Replace the source of this node with new_src.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Assignment ]> } description=""/>
@@ -269,7 +269,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -277,7 +277,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before the current symbol node in the Abstract Syntax Tree.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -396,7 +396,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -404,7 +404,7 @@ Check if this node is contained another node of the given class
### local_usages
Retrieves all usages of the assigned variable within its code block scope.
-
+
list[ Editable [ Statement ]]> } description="A sorted list of statement nodes where the variable is used."/>
@@ -412,7 +412,7 @@ Retrieves all usages of the assigned variable within its code block scope.
### move_to_file
Moves the given symbol to a new file and updates its imports and references.
-
+
parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -449,7 +449,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -457,7 +457,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Simplifies an assignment expression by reducing it based on a boolean condition and updating all the usages.
-
+
remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Renames a symbol and updates all its references in the codebase.
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_comment
Sets a comment to the symbol.
-
+
set_inline_comment
Sets an inline comment to the symbol.
-
+
set_name
Sets the name of a code element.
-
+
set_type_annotation
Adds or updates a type annotation for the current assignment.
-
+
set_value
Sets the value of an assignment expression.
-
+
symbol_usages
Returns a list of symbols that use or import the exportable object.
-
+
usages
Returns a list of usages of the exportable object.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -99,7 +99,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -107,7 +107,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ AssignmentStatement ]> } description=""/>
@@ -196,7 +196,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -309,7 +309,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -317,7 +317,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -325,7 +325,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -333,7 +333,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -341,7 +341,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[Usable](/api-reference/core/Usable), [AssignmentStatement](/api-reference/core/AssignmentStatement), [Editable](/api-reference/core/Editable), [Importable](/api-reference/core/Importable), [HasValue](/api-reference/core/HasValue), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName)
@@ -119,7 +119,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -127,7 +127,7 @@ Find all ancestors of the node of the given type. Does not return itself
### dependencies
Returns a list of symbols that this symbol depends on.
-
+
edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Attribute ]> } description=""/>
@@ -239,7 +239,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_name
Returns the name node of the object.
-
+
Name | ChainedAttribute | None> } description="The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name."/>
@@ -247,7 +247,7 @@ Returns the name node of the object.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -360,7 +360,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -368,7 +368,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -376,7 +376,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -384,7 +384,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -392,7 +392,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
rename
Renames a symbol and updates all its references in the codebase.
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_name
Sets the name of a code element.
-
+
set_value
Sets the value of a node's assignment.
-
+
symbol_usages
Returns a list of symbols that use or import the exportable object.
-
+
usages
Returns a list of usages of the exportable object.
-
+
+
### Inherits from
[HasValue](/api-reference/core/HasValue), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -75,7 +75,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -83,7 +83,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ AwaitExpression ]> } description=""/>
@@ -172,7 +172,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -285,7 +285,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -293,7 +293,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -301,7 +301,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -309,7 +309,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -317,7 +317,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
resolve
Resolves the wrapper expression and returns the first concrete expression.
-
+
Expression> } description=""/>
@@ -395,7 +395,7 @@ Resolves the wrapper expression and returns the first concrete expression.
### search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_value
Sets the value of the node's value Expression.
-
+
+
### Inherits from
[Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -87,7 +87,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -95,7 +95,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ BinaryExpression ]> } description=""/>
@@ -184,7 +184,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -297,7 +297,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -305,7 +305,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -313,7 +313,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -321,7 +321,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Simplifies a binary expression by reducing it based on a boolean condition.
-
+
remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
+
### Inherits from
[HasBlock](/api-reference/core/HasBlock), [Statement](/api-reference/core/Statement), [Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -99,7 +99,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### add_decorator
Adds a decorator to a function or method.
-
+
ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -130,7 +130,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ BlockStatement ]> } description=""/>
@@ -219,7 +219,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -332,7 +332,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -340,7 +340,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -348,7 +348,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -356,7 +356,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -364,7 +364,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
set_docstring
Sets or updates the docstring for the current entity.
-
+
+
### Inherits from
[Expression](/api-reference/core/Expression), [Editable](/api-reference/core/Editable)
@@ -71,7 +71,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -79,7 +79,7 @@ Find all ancestors of the node of the given type. Does not return itself
### edit
Replace the source of this `Editable` with `new_src`.
-
+
find
Find and return matching nodes or substrings within an Editable instance.
-
+
find_string_literals
Returns a list of string literals within this node's source that match any of the given
-
+
flag
Adds a visual flag comment to the end of this Editable's source text.
-
+
CodeFlag[ Boolean ]> } description=""/>
@@ -168,7 +168,7 @@ Adds a visual flag comment to the end of this Editable's source text.
### get_variable_usages
Returns Editables for all TreeSitter nodes corresponding to instances of variable usage
-
+
insert_after
Inserts code after this node.
-
+
insert_before
Inserts text before this node's source with optional indentation and newline handling.
-
+
is_child_of
Checks if this node is a descendant of the given editable instance in the AST.
-
+
bool } description=""/>
@@ -281,7 +281,7 @@ Checks if this node is a descendant of the given editable instance in the AST.
### is_wrapped_in
Check if this node is contained another node of the given class
-
+
bool } description=""/>
@@ -289,7 +289,7 @@ Check if this node is contained another node of the given class
### parent_of_type
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -297,7 +297,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### parent_of_types
Find the first ancestor of the node of the given type. Does not return itself
-
+
Editable | None> } description=""/>
@@ -305,7 +305,7 @@ Find the first ancestor of the node of the given type. Does not return itself
### reduce_condition
Reduces an editable to the following condition
-
+
None } description=""/>
@@ -313,7 +313,7 @@ Reduces an editable to the following condition
### remove
Deletes this Node and its related extended nodes (e.g. decorators, comments).
-
+
replace
Search and replace occurrences of text within this node's source and its extended nodes.
-
+
search
Returns a list of all regex match of `regex_pattern`, similar to python's re.search().
-
+
+
### Inherits from
[Usable](/api-reference/core/Usable), [Importable](/api-reference/core/Importable), [Expression](/api-reference/core/Expression), [HasName](/api-reference/core/HasName), [Editable](/api-reference/core/Editable)
@@ -91,7 +91,7 @@ import {Attribute} from '/snippets/Attribute.mdx';
### ancestors
Find all ancestors of the node of the given type. Does not return itself
-
+
list[ Editable ]> } description=""/>
@@ -99,7 +99,7 @@ Find all ancestors of the node of the given type. Does not return itself
### dependencies
Returns a list of symbols that this symbol depends on.
-
+