]> Cypherpunks repositories - gostls13.git/commit
internal/pkgbits: indent productions and hoist some types up
authorMark Freeman <mark@golang.org>
Mon, 19 May 2025 22:00:31 +0000 (18:00 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 15:25:32 +0000 (08:25 -0700)
commitbfb8f1327466ac9075a5c2f4fba72ebeebe8023b
tree0bb28261d944ab77a446cadd99b0df84c6df76a8
parent07b94b2db23eda9ff4629cd8c2a0a32decdae08b
internal/pkgbits: indent productions and hoist some types up

The types being hoisted are those which cannot be referenced; that is,
where Ref[T] is illegal. These are most clearly owned by pkgbits. The
types which follow are those which can be referenced.

Referenceable types are more hazy due to the reference mechanism of UIR
- sections. These are a detail of the UIR file format and are surfaced
directly to importers.

I suspect that pkgbits would benefit from a reference mechanism not
dependent on sections. This would permit us to push down many types
from the noder into pkgbits, reducing the interface surface without
giving up deduplication.

Change-Id: Ifaf5cd9de20c767ad0941413385b308d628aac6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/674635
Auto-Submit: Mark Freeman <mark@golang.org>
TryBot-Bypass: Mark Freeman <mark@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
src/internal/pkgbits/doc.go