Skip to content

Commit

Permalink
fixing incorrect handling of function bind
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Feb 20, 2024
1 parent 237401c commit 4d37da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 1.4.42
* Bugfix: function bindings was incorrectly treated as static extensions
## 1.4.41
* Bugfix: fixed type resolve regression for iterators
## 1.4.40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public boolean resolveIsStaticExtension() {
if (ChainBeforeMethod instanceof HaxeIdentifier) return false; // not chain, got method identifer
if (ChainBeforeMethod instanceof HaxeReferenceExpression referenceExpression1) {
PsiElement caller = referenceExpression1.resolve();
if (caller == method) return false; // probably a function bind or similar
// todo find using import statement for methods declaring class and confirm "using"
return !(caller instanceof HaxeClass || caller instanceof HaxeImportAlias);
}else {
Expand Down

0 comments on commit 4d37da5

Please sign in to comment.