Skip to content

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

Open
BebeSparkelSparkel wants to merge 5 commits intoSBoudrias:masterfrom
BebeSparkelSparkel:master
Open

Allow query to be applied to an ast with Tree.fromTree#45
BebeSparkelSparkel wants to merge 5 commits intoSBoudrias:masterfrom
BebeSparkelSparkel:master

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