oxc/crates/oxc_semantic/src
underfin 78b427bc50
feat(transform): support es2015 new target (#1967)
Here implementing the es2015 new target transform, see detail at
https://babel.dev/docs/babel-plugin-transform-template-new-target.

Here has three kinds need to be distinguished.

- `NewTargetKind::Method`, it from `AstKind::ObjectMethod` or
`AstKind::MethodDefinitionKind::Get/Set/Method`. It will be transformed
to `void 0`.
- `NewTargetKind::Constructor`, is from `
AstKind::MethodDefinitionKind::Constructor`. It will be transformed to
`this.constructor`.
- `NewTargetKind::Function`, is from ` AstKind::Function`, here the
function is not the above function. It will be transformed to `this
instanceof _target ? this.constructor : void 0`, here `_target` comes
from the function name or is created by scope uid ident.
2024-01-10 23:59:56 +08:00
..
checker feat(semantic): allow reserved keyword defined in ts module block (#1907) 2024-01-06 12:56:27 +08:00
class refactor(semantic): improve ClassTable implmention and merge properties and methods to elements (#1902) 2024-01-05 18:38:51 +08:00
jsdoc feat(ast/semantic): parse jsdoc on PropertyDefinition (#1517) 2023-11-23 18:30:14 +08:00
module_record chore: upgrade rustc toolchain to stable 1.75.0 (#1853) 2023-12-29 12:20:51 +08:00
binder.rs feat(semantic): add current_scope_flags function in SemanticBuilder (#1906) 2024-01-06 12:51:44 +08:00
builder.rs feat(semantic): add current_scope_flags function in SemanticBuilder (#1906) 2024-01-06 12:51:44 +08:00
diagnostics.rs
lib.rs feat(semantic): add ClassTable (#1793) 2023-12-25 23:59:35 +08:00
node.rs refactor(semantic): remove unused methods from AstNode 2023-12-21 16:08:14 +08:00
reference.rs feat(playground): visualize symbol (#1886) 2024-01-04 15:36:31 +08:00
scope.rs feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
symbol.rs feat(playground): visualize symbol (#1886) 2024-01-04 15:36:31 +08:00