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

Add support for comment matching #5

Open
jrfeenst opened this issue Aug 19, 2013 · 1 comment
Open

Add support for comment matching #5

jrfeenst opened this issue Aug 19, 2013 · 1 comment

Comments

@jrfeenst
Copy link
Contributor

Comments in the AST are stored separately (if at all). They will have to be associated with the nodes somehow, perhaps range would work. The use case is for things like overriding rules in esquery or searching for the doc of a particular statement.

@michaelficarra
Copy link
Member

New versions of estraverse expose an attachComments function that attaches the comments to the nodes with which they're most likely associated.

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

2 participants