Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose optimization methods directly #92

Closed
emilos opened this issue Oct 24, 2020 · 0 comments
Closed

Expose optimization methods directly #92

emilos opened this issue Oct 24, 2020 · 0 comments

Comments

@emilos
Copy link
Contributor

emilos commented Oct 24, 2020

Right now you can only import optimizations method in the following way:

const binaryExpressionReduction = require('abstract-syntax-tree/src/optimizations/binaryExpressionReduction')

it would be much nicer to just import them directly:

const { binaryExpressionReduction } = require('abstract-syntax-tree')

README should be updated as a part of this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant