Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphlang/graphlang.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down