Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(isolated_declarations): do not use
AstBuilder::*_from_*
me…
…thods (#7071) Preparation for #7073. Avoid using `AstBuilder::*_from_*` methods to construct enums, use explicit construction instead. Before: ```rs let ident = self.ast.binding_pattern_kind_from_binding_identifier(ident); ``` After: ```rs let ident = BindingPatternKind::BindingIdentifier(ident); ``` Often this produces shorter code, as well as (in my opinion) being easier to read.
- Loading branch information