Skip to content

Commit

Permalink
✨ adding ability to look for packages (#316)
Browse files Browse the repository at this point in the history
Allows for the searching of packages. 

Needs  konveyor/java-analyzer-bundle#62

Signed-off-by: Shawn Hurley <[email protected]>
  • Loading branch information
shawn-hurley authored Sep 7, 2023
1 parent ba27560 commit 6ad9f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions provider/internal/java/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var locationToCode = map[string]int{
"import": 8,
"variable_declaration": 9,
"type": 10,
"package": 11,
}

type javaProvider struct {
Expand Down
4 changes: 3 additions & 1 deletion provider/internal/java/service_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func (p *javaServiceClient) Evaluate(cap string, conditionInfo []byte) (provider
incidents, err = p.filterVariableDeclaration(symbols)
case 10:
incidents, err = p.filterTypeReferences(symbols)
case 11:
incidents, err = p.filterDefault(symbols)
default:

}
Expand Down Expand Up @@ -196,7 +198,7 @@ func (p *javaServiceClient) initialization() {
}

var result protocol.InitializeResult
for i:=0; i < 10; i++ {
for i := 0; i < 10; i++ {
if err := p.rpc.Call(p.ctx, "initialize", params, &result); err != nil {
p.log.Error(err, "initialize failed")
continue
Expand Down

0 comments on commit 6ad9f5e

Please sign in to comment.