oxc/crates/oxc_linter
overlookmotel 843bce4d92 refactor(ast)!: IdentifierReference::reference_id return ReferenceId (#7126)
Alter `IdentifierReference::reference_id` to return `ReferenceId`, instead of `Option<ReferenceId>`.

This method is only useful on a post-semantic AST, where it will never return `None`. Returning `ReferenceId` discourages the anti-pattern of treating the result as if it could be either `Some` or `None`, and shortens code.
2024-11-05 02:25:27 +00:00
..
examples refactor(oxc): remove useless allocator.alloc(program) calls (#6571) 2024-10-15 02:21:20 +00:00
fixtures test: add trailing line breaks to conformance fixtures (#5541) 2024-09-06 12:55:17 +00:00
src refactor(ast)!: IdentifierReference::reference_id return ReferenceId (#7126) 2024-11-05 02:25:27 +00:00
tests
Cargo.toml release(oxlint): v0.11.0 (#7094) 2024-11-03 11:27:30 +08:00
CHANGELOG.md release(oxlint): v0.11.0 (#7094) 2024-11-03 11:27:30 +08:00