Skip to content

Commit

Permalink
Add another test case and TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzojive authored and alexeagle committed Mar 7, 2024
1 parent 17a38f9 commit cd1bd6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gazelle/kotlin/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit cd1bd6f

Please sign in to comment.