Commit ID 25da75e75425f20fb61f451eef80e00382a14593
|
|
Contributor: | Alan Donovan | Files Modified | 6 |
| Date: | 23-January-2026 at 18:18 | Lines Added: | 23 | |
| Repository: | https://go.googlesource.com/tools master | Lines Removed: | 22 | |
| Commit Comment: | go/ast/inspector: add Cursor.Valid method The new convenience method is clearer than using cur.Inspector() != nil. Also, tweak documentation, and use the new method throughout x/tools. Fixes golang/go#76361 Change-Id: I406f67756e42764900a233172879667e5e5d3ef6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/738821 Reviewed-by: Madeline Kalil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> | |||
| Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed | |
|---|---|---|---|---|---|---|---|
| Go | 11 | 11 | 11 | 10 | 1 | 1 | |
| File | Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed |
|---|---|---|---|---|---|---|---|
| go/analysis/passes/modernize/unsafefuncs.go | Go | 1 | 1 | 0 | 0 | 0 | 0 |
| go/analysis/passes/printf/printf.go | Go | 1 | 1 | 0 | 0 | 0 | 0 |
| go/ast/inspector/cursor.go | Go | 4 | 1 | 11 | 3 | 1 | 0 |
| gopls/internal/golang/extract.go | Go | 1 | 1 | 0 | 0 | 0 | 0 |
| gopls/internal/golang/undeclared.go | Go | 1 | 1 | 0 | 0 | 0 | 0 |
| internal/astutil/util.go | Go | 3 | 6 | 0 | 7 | 0 | 1 |