mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
```diff + BlockStatement + BlockStatement implements HasSpan + BlockStatement implements Statement + BlockStatement.statement + BlockStatementAST + BlockStatementAST implements BlockStatement + BlockStatementAST implements Statement + BlockStatementAST implements ASTNode + BlockStatementAST implements HasSpan + ExpressionStatement + ExpressionStatement implements HasSpan + ExpressionStatement implements Statement + ExpressionStatement.expression + ExpressionStatementAST + ExpressionStatementAST implements HasSpan + ExpressionStatementAST implements ExpressionStatement + ExpressionStatementAST implements ASTNode + ExpressionStatementAST implements Statement + VarRef + VarRef implements HasSpan + VarRef implements Expression + VarRef.name + VarRefAST + VarRefAST implements HasSpan + VarRefAST implements Expression + VarRefAST implements VarRef + VarRefAST implements ASTNode + WhileStatement + WhileStatement implements Statement + WhileStatement implements HasSpan + WhileStatement.condition + WhileStatement.body + WhileStatementAST + WhileStatementAST implements ASTNode + WhileStatementAST implements Statement + WhileStatementAST implements WhileStatement + WhileStatementAST implements HasSpan ``` |
||
|---|---|---|
| .. | ||
| 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.