Skip to content

Improve docs and add examples for Visitor #778

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

Merged
merged 4 commits into from
Dec 29, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Dec 28, 2022

Follow on to #765

@alamb
Copy link
Contributor Author

alamb commented Dec 28, 2022

cc @tustvold

@coveralls
Copy link

coveralls commented Dec 28, 2022

Pull Request Test Coverage Report for Build 3800963580

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.033%

Totals Coverage Status
Change from base Build 3800667466: 0.0%
Covered Lines: 13102
Relevant Lines: 15229

💛 - Coveralls

@alamb
Copy link
Contributor Author

alamb commented Dec 29, 2022

@tustvold do you have time to review this PR? I hope to merge this later today / make a release

/// let mut visited = vec![];
/// visit_relations(&statements, |relation| {
/// visited.push(format!("RELATION: {}", relation));
/// ControlFlow::<()>::Continue(())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised you need to type hint this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, me too -- I think it is because the return value is not used

@alamb alamb merged commit 87df09b into apache:main Dec 29, 2022
@alamb alamb deleted the alamb/docs_examples_visitor branch December 29, 2022 13:56
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.

3 participants