aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug.go
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2025-05-21 11:21:31 -0400
committerAlan Donovan <adonovan@google.com>2025-05-29 08:18:49 -0700
commitf8c51b1a6c3d6ebfdbeab3c81d4157aefe0e8b71 (patch)
treee56e053133d2c21f954a4b699fa6fcde224c2b48 /src/runtime/debug.go
parent263bc50c90ff8e0bcd55765819056807acfd20ab (diff)
downloadgo-f8c51b1a6c3d6ebfdbeab3c81d4157aefe0e8b71.tar.xz
go/doc: NewFromFiles: fix panic on Files with SkipObjectResolution
This CL fixes a panic in NewFromFiles when it is provided files produced by the parser in SkipObjectResolution mode, which skips the step of connecting ast.Idents to (deprecated) ast.Objects. Instead of calling ast.NewPackage, which performs a number of unnecessary steps, we just construct the ast.Package directly. Fixes #66290 Change-Id: Id55bd30d8afb9d396c3901070e7607c5a22030d5 Reviewed-on: https://go-review.googlesource.com/c/go/+/675036 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/debug.go')
0 files changed, 0 insertions, 0 deletions