oxc icon indicating copy to clipboard operation
oxc copied to clipboard

refactor(ast): `AstKind::as_*` methods take `self`

Open overlookmotel opened this issue 5 months ago • 5 comments

Make AstKind::as_* methods (e.g. AstKind::as_boolean_literal) take self, not &self.

AstKind is Copy.

See: https://github.com/oxc-project/oxc/issues/5506#issuecomment-2332912976

overlookmotel avatar Sep 06 '24 13:09 overlookmotel