buxlabs/abstract-syntax-tree

Support objects in the has method

emilos opened this issue · 0 comments

currently we support:

program.has('Identifier[name="foo"]')

we could also add support for:

program.has({ type: 'Identifier', name: 'foo' })