docs(semantic): make doc tests for AstNode::contains_any etc runnable#13595
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR makes documentation examples in AstNodes methods runnable as proper doctests by adding necessary imports and setup code. The changes fix one incorrect type reference (AstType::ExportDeclaration to AstType::ExportNamedDeclaration) and transform three documentation examples from non-runnable to runnable doctests.
- Convert non-runnable doc examples to proper doctests with required imports and setup
- Fix incorrect AST type reference in documentation examples
- Improve code formatting and comments in the examples
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Uncontroversial change just to doc comments, so merging without review. |
Merge activity
|
CodSpeed Instrumentation Performance ReportMerging #13595 will not alter performanceComparing Summary
Footnotes |
9eb96c2 to
5dc82ff
Compare

Follow-on after #13137. That PR added methods to
AstNodes, and doc comments include examples.Make those examples into proper runnable doctests, and fix them (
AstType::ExportDeclarationdoesn't exist).