mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
```diff + Argument.value + Argument implements HasSpan + ArgumentAST - FnCall.arguments + FnCall.argument - FnCallAST.arguments + FnCallAST.argument + interface Function + Function.is_async + Function.is_generator + Function.parameter + Function implements Expression + Function implements HasSpan + Parameter + Parameter.is_readonly + Parameter.assignment + Parameter.type_annotation + Parameter implements HasSpan + ParameterAST + ArrowFunction implements Function + ArrowFunction implements Expression + ArrowFunctionAST implements Function + ArrowFunctionAST implements Expression + FnDeclaration implements Function + FnDeclaration implements Expression + FnDeclarationAST implements Function + FnDeclarationAST implements Expression ``` |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
oxc_query
What is this?
oxc_query is a trustfall adapter which can be used for querying data about code.
Example: Query the name of every variable declared in a js/ts/tsx file
query {
File {
variable_declaration {
left {
assignment_to_variable_name @filter(op: "is_not_null") @output # we filter not null because destructured variables will be null when outputted on this edge.
}
}
}
}
Hint: See example/simple.rs for how to run this query.