Welcome to the Codegen API reference. This documentation covers the core classes and functions available in Codegen.
The main entry point for analyzing and transforming code. Provides access to files, functions, and the call graph.
Work with source files, their ASTs, and manage imports/exports.
Represents a function in your codebase. Analyze parameters, return types, and call sites.
Represents a symbol in your codebase, includes functions, classes, and more.
Python-specific APIs and utilities for working with Python codebases.
TypeScript and JavaScript support, including React component analysis.
Each class and function includes detailed examples and common use cases. Use the sidebar navigation to explore specific APIs.
If you’re new to Codegen, we recommend:
Use the search bar (⌘ K) to quickly find specific APIs and functionality.
Welcome to the Codegen API reference. This documentation covers the core classes and functions available in Codegen.
The main entry point for analyzing and transforming code. Provides access to files, functions, and the call graph.
Work with source files, their ASTs, and manage imports/exports.
Represents a function in your codebase. Analyze parameters, return types, and call sites.
Represents a symbol in your codebase, includes functions, classes, and more.
Python-specific APIs and utilities for working with Python codebases.
TypeScript and JavaScript support, including React component analysis.
Each class and function includes detailed examples and common use cases. Use the sidebar navigation to explore specific APIs.
If you’re new to Codegen, we recommend:
Use the search bar (⌘ K) to quickly find specific APIs and functionality.