HaxeFoundation / HaxeFoundation/haxe

[display] find references doesn't find enum constructor patterns

Open
#7,245 3 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
import haxe.macro.Expr.ExprDef;

class Main {
public static function main() {
switch ((null:ExprDef)) {
case EConst(c):
case _:
}
}
}
```

![](https://i.imgur.com/AGRXbCT.png)

When invoking find references on the `EConst` here, it does find two _instantiations_ in `Compiler.hx`, but it seems unable to find references of enum constructors in _patterns_ (e.g. the one in the `Main.hx` file itself, and there's others in std like in `ExprTools`, `haxe.macro.Printer`...):

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.