From 10f43d9e707db71e6ff2142cb811710dac32944a Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Mon, 27 Jan 2025 13:10:09 -0800 Subject: [PATCH 1/7] . --- docs/introduction/overview.mdx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/introduction/overview.mdx b/docs/introduction/overview.mdx index 24a10d0a6..217005511 100644 --- a/docs/introduction/overview.mdx +++ b/docs/introduction/overview.mdx @@ -9,10 +9,12 @@ iconType: "solid" It provides a scriptable interface to a powerful, multi-lingual language server built on top of [Tree-sitter](https://tree-sitter.github.io/tree-sitter/). -export const intoSnippet = `# Codegen builds a complete graph connecting +export const metaCode = `# Codegen builds a complete graph connecting # functions, classes, imports and their relationships from codegen import Codebase +codebase = Codebase('./') + # Work with code without dealing with syntax trees or parsing for function in codebase.functions: # Comprehensive static analysis for references, dependencies, etc. @@ -21,13 +23,23 @@ for function in codebase.functions: function.remove() ` +export const code = `def foo(): + pass + +def bar(): + foo() + +def baz(): + pass +` +