From cd1bd6f719ddf8c559219527770b765575e5217c Mon Sep 17 00:00:00 2001 From: Red Daly Date: Wed, 11 Oct 2023 21:10:25 -0700 Subject: [PATCH] Add another test case and TODO --- gazelle/kotlin/parser/parser.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gazelle/kotlin/parser/parser.go b/gazelle/kotlin/parser/parser.go index 3fa8acbc2..6efe76e9a 100644 --- a/gazelle/kotlin/parser/parser.go +++ b/gazelle/kotlin/parser/parser.go @@ -76,6 +76,7 @@ func (p *treeSitterParser) Parse(filePath, source string) (*ParseResult, []error } else if nodeI.Type() == "package_header" { if result.Package != "" { fmt.Printf("Multiple package declarations found in %s\n", filePath) + // TODO: Don't exit here and return an error instead? os.Exit(1) }