mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
There are many cases in lint rules where we want to see if a symbol is a function by checking its SymbolFlags. This is currently not fully possible, since variables assigned to arrow functions are not distinguished from any other kind of variable. This PR adds `SymbolFlags::ArrowFunction` for variables that are initialized to arrow functions. Symbols that are re-assigned to arrow functions will not have this flag, but this is acceptable for lint rules. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| CHANGELOG.md | ||