oxc/crates
u9g 9a5bb008e7
feat(query): Add is_getter, is_setter, is_constructor to all Function implementors (#1526)
---

<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary>

> # TL;DR
> This pull request adds new properties to the `ArrowFunction`, `FnDeclaration`, and `Function` interfaces in the Trustfall schema. It also adds implementation for resolving these properties in the `adapter.rs` and `properties.rs` files. Additionally, it adds a new method `function_scope_flag` to the `Vertex` struct in the `vertex.rs` file.
> 
> # What changed
> - Added new properties (`is_getter`, `is_setter`, `is_constructor`) to the `ArrowFunction`, `FnDeclaration`, and `Function` interfaces in the Trustfall schema.
> - Implemented the resolution of these properties in the `resolve_arrow_function_property`, `resolve_fn_declaration_property`, and `resolve_function_property` functions in the `properties.rs` file.
> - Added a new method `function_scope_flag` to the `Vertex` struct in the `vertex.rs` file.
> 
> # How to test
> 1. Run the test suite to ensure that all existing tests pass.
> 2. Add new tests to cover the newly added properties and the `function_scope_flag` method.
> 3. Run the test suite again and ensure that all tests pass.
> 
> # Why make this change
> - The new properties (`is_getter`, `is_setter`, `is_constructor`) provide additional information about functions in the Trustfall schema, allowing clients to query for these properties.
> - The `function_scope_flag` method in the `Vertex` struct provides a convenient way to access the scope flags of a function node, which can be useful for various analysis and processing tasks.
</details>
2023-11-27 12:22:41 +08:00
..
oxc refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_allocator refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_ast feat(ast): implement new proposal-import-attributes (#1476) 2023-11-25 15:56:09 +08:00
oxc_cli feat(prettier): turn off preserve_parens and start working on need-parens (#1487) 2023-11-21 16:26:56 +00:00
oxc_codegen feat(ast): implement new proposal-import-attributes (#1476) 2023-11-25 15:56:09 +08:00
oxc_diagnostics refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_formatter feat(ast): implement new proposal-import-attributes (#1476) 2023-11-25 15:56:09 +08:00
oxc_index refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_js_regex Initialize JS Regex crates and def AST. (#1500) 2023-11-23 00:22:17 +08:00
oxc_linter feat(linter): no-is-mounted for eslint-plugin-react (#1550) 2023-11-26 11:06:08 +00:00
oxc_linter_plugin refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_macros refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_minifier refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_parser feat(ast): implement new proposal-import-attributes (#1476) 2023-11-25 15:56:09 +08:00
oxc_prettier fix(prettier): incorrect order of print in AssignmentTargetPropertyProperty (#1545) 2023-11-27 12:18:32 +08:00
oxc_query feat(query): Add is_getter, is_setter, is_constructor to all Function implementors (#1526) 2023-11-27 12:22:41 +08:00
oxc_resolver chore(resolver): add a path alias test (#1549) 2023-11-26 07:14:32 +00:00
oxc_semantic feat(ast/semantic): parse jsdoc on PropertyDefinition (#1517) 2023-11-23 18:30:14 +08:00
oxc_span refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_syntax refactor(parser) Updated comments mentioning the ecma specification section 12.x (#1496) 2023-11-22 19:29:04 +08:00
oxc_transformer feat(transformer/react): handle babel 8 breaking removed-options (#1489) 2023-11-22 11:01:40 +08:00
oxc_type_synthesis refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_wasm fix(wasm): fix prettier crashing 2023-11-22 21:27:47 +08:00