From 961b13d89f6816d13af552fa24a02cadf66bd149 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sun, 18 May 2025 19:39:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`codex/e?= =?UTF-8?q?nable-unified-code-graph-with-docker-compose`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @TheApeMachine. * https://github.com/TheApeMachine/platform-graph/pull/1#issuecomment-2889032659 The following files were modified: * `graphlang/graphlang.go` * `main.go` --- graphlang/graphlang.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphlang/graphlang.go b/graphlang/graphlang.go index 61272b1..d83a384 100644 --- a/graphlang/graphlang.go +++ b/graphlang/graphlang.go @@ -89,7 +89,7 @@ type TreeSitterParser struct { } // NewTreeSitterParser initializes the TreeSitterParser and connects it to Neo4j. -// NewTreeSitterParser initializes the TreeSitterParser with configuration +// NewTreeSitterParser creates a new TreeSitterParser instance configured for a specific project, root node, and source code base URL. func NewTreeSitterParser(driver neo4j.DriverWithContext, rootName, baseURL, projectRoot string) *TreeSitterParser { return &TreeSitterParser{ Handle: sitter.NewParser(), diff --git a/main.go b/main.go index c525611..99f0959 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/theapemachine/platform-graph/graphlang" ) -// Main function to demonstrate usage. +// main initializes configuration from environment variables, connects to a Neo4j database, and analyzes a directory using a TreeSitter-based parser. func main() { neo4jURI := os.Getenv("NEO4J_URI") neo4jUser := os.Getenv("NEO4J_USER")