u9g
5dc69ea4ec
feat(query): Add many types ( #742 )
2023-08-15 03:30:59 -04:00
u9g
99a7ad4319
feat(query): add FnCall and Argument types ( #737 )
2023-08-14 10:25:03 +08:00
u9g
087abd3cf1
feat(query): Add Reassignment type and add str property to span ( #731 )
2023-08-13 22:18:41 +08:00
u9g
9566378119
feat(query): add many types to oxc_query ( #724 )
...
Adds `Name(AST)?`, `IfStatementAST`, `SpreadIntoObject(AST)?`,
`ObjectEntry(AST)?`, `DotProperty(AST)?` types
Fixes `ObjectLiteral`'s value field's output type
Added `entry` field to `ObjectLiteral(AST)?`
2023-08-12 16:43:58 +08:00
u9g
c6ed90900c
feat(query): Add name to class ( #720 )
2023-08-11 14:36:40 +08:00
u9g
97c5cd379e
feat(query): Add right to VariableDeclaration ( #718 )
2023-08-11 05:40:35 +00:00
u9g
9c05866cc1
feat(query): add NumberLiteral type ( #717 )
2023-08-11 05:37:29 +00:00
u9g
c7fc1d99b5
feat(query): add name to interface ( #716 )
2023-08-11 05:22:12 +00:00
u9g
a953a96529
fix(query): make ObjectLiteralAST implement ObjectLiteral ( #715 )
2023-08-11 05:15:22 +00:00
u9g
99a4816ce7
feat(website): add query playground ( #698 )
2023-08-11 10:53:21 +08:00
Boshen
2f48bdf26f
fix(parser,semantic): make semantic own Trivias ( #711 )
...
closes #708
Making the parser return Rc<Trivias> is not a good API, and ideally
`Semantic` should just own `Trivias` so it can process or mutate it.
2023-08-10 15:30:32 +08:00
u9g
8b7b1381b5
chore(query): abstract away testing boilerplate ( #669 )
2023-07-31 10:05:24 +08:00
u9g
08e78bce16
feat(query): add ast counterpart to JSXOpeningElement ( #668 )
2023-07-30 19:51:25 -04:00
u9g
228cab9269
feat(query): add ast counterpart to ObjectLiteral ( #666 )
2023-07-30 18:15:57 -04:00
u9g
29ddca52b7
chore(query): condense XAST and X resolvers into one ( #663 )
...
No need to needlessly duplicate code.
**Future work:**
1. remove any breakout function that calls getspan...
2. maybe: make every type that can implement span (why don't we already)
2023-07-30 11:34:34 -04:00
Boshen
b34ef4f07a
chore: reformat
2023-07-27 13:11:46 +08:00
u9g
34f25b7067
feat(query): adapter invariant test ( #644 )
...
Checks for invariants in the adapter that would certainly error out real
usage, doesn't actually use the data provided to the adapter
2023-07-26 23:59:02 -04:00
u9g
5b0449507e
chore(query): move tests to their own file ( #643 )
2023-07-27 03:41:55 +00:00
u9g
451667acfc
feat(query): impl ASTNode for VariableDeclarationAST ( #639 )
...
also changes from using entire_span to just span so we don't have to
have two properties point at the same span
2023-07-27 11:30:15 +08:00
u9g
997eb26d3e
feat(query): impl Typename for VariableDeclaration ( #638 )
2023-07-27 09:46:49 +08:00
u9g
1d504ac94a
Add oxc_query crate ( #625 )
2023-07-26 13:03:00 +08:00