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

Allow query to be applied to an ast with Tree.fromTree #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Allow query to be applied to an ast with Tree.fromTree #45

wants to merge 5 commits into from

Conversation

BebeSparkelSparkel
Copy link

@BebeSparkelSparkel BebeSparkelSparkel commented Mar 27, 2018

Exposed the Tree obj
Added Tree.fromTree and Tree.fromSource constructors
Allows a Tree to be created from an existing ast instead of only from a source string

Breaks backwards compatibility, so could you please let me know how you would like to integrate this?

Also there aren't as many changes as it seems in the diff. I had to indent the test code to cover two cases.

@SBoudrias
Copy link
Owner

Hey, could you try to reduce the whitespace and other unrelated changes? It's easier for maintainers if you can send PR focusing on a single change.

@BebeSparkelSparkel
Copy link
Author

@SBoudrias I have reduced the whitespace changes.
I only made real modifications to tree.js. The test files were modified slightly to support that change.

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

Successfully merging this pull request may close these issues.

2 participants