You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/astutil: PreorderStack: a safer ast.Inspect for stacks
This CL defines PreorderStack, a safer function than ast.Inspect
for when you need to maintain a stack.
Beware, the stack that it produces does not include n itself--a
half-open interval--so that nested traversals compose correctly.
The CL also uses the new function in various places in x/tools
where appropriate; in some cases it was clearer to rewrite
using cursor.Cursor.
+ test
Updates golang/go#73319
Change-Id: I843122cdd49cc4af8a7318badd8c34389479a92a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/664635
Auto-Submit: Alan Donovan <adonovan@google.com>
Commit-Queue: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
0 commit comments