-
Notifications
You must be signed in to change notification settings - Fork 22
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 preliminary docs for queries #928
Conversation
|
When matching patterns, you may want to process specific nodes within the | ||
pattern. Captures allow you to associate names with specific nodes in a pattern, | ||
so that you can later refer to those nodes by those names. Capture names are | ||
written _after_ the nodes that they refer to, and start with an `@` character. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before
Marking as ready for review since I'd greatly appreciate the input on how-tos; I still need to do another pass for the query language chapter. |
crates/solidity/outputs/cargo/tests/src/doc_examples/using_queries.rs
Outdated
Show resolved
Hide resolved
crates/solidity/outputs/cargo/tests/src/doc_examples/using_queries.rs
Outdated
Show resolved
Hide resolved
crates/solidity/outputs/cargo/tests/src/doc_examples/using_queries.rs
Outdated
Show resolved
Hide resolved
crates/solidity/outputs/cargo/tests/src/doc_examples/using_queries.rs
Outdated
Show resolved
Hide resolved
crates/solidity/outputs/cargo/tests/src/doc_examples/using_queries.rs
Outdated
Show resolved
Hide resolved
crates/solidity/outputs/npm/tests/src/doc-examples/using-queries.ts
Outdated
Show resolved
Hide resolved
I have adapted and tested the queries in the Tree Query Language chapter as well in ca13cfc; I'd appreciate taking a look at that as well 🙏 |
crates/solidity/outputs/npm/tests/src/doc-examples/using-queries.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few suggestions on misnamed variables/files.
Otherwise, LGTM!
Great work! Thanks.
Closes #915