Skip to content

Commit

Permalink
[class-declaration] Fix hover
Browse files Browse the repository at this point in the history
  • Loading branch information
5pilow committed Jun 7, 2023
1 parent 8429a57 commit 3ea4740
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ public boolean validExpression(WordCompiler compiler, MainLeekBlock mainblock) t

@Override
public Hover hover(Token token) {
if (token == parentToken) {
if (token == parentToken && parent != null) {
return new Hover(parent.getType(), token.getLocation(), parent.getLocation());
}
return super.hover(token);
Expand Down

0 comments on commit 3ea4740

Please sign in to comment.