Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Analysis ¶ added in v1.0.9
Analysis keeps interface/reflection visibility and method liveness from the same fixed point. It borrows info and must not outlive its package metadata.
func AnalyzeProgram ¶ added in v1.0.9
func AnalyzeProgram(info *meta.GlobalSummary, rootNames []string) Analysis
AnalyzeProgram computes method liveness and interface visibility together. The returned Analysis borrows info and must not outlive its package metadata.
func (Analysis) CanDropMethodMetadata ¶ added in v1.0.9
CanDropMethodMetadata requires a known type that cannot be observed through an interface, including reflection through child and method-result types. Callers must additionally rule out opaque native consumers of Go metadata.
func (Analysis) CanDropTypeFields ¶ added in v1.0.9
CanDropTypeFields excludes reflection-visible types and dynamic type lookup. StructOf can find a static descriptor without converting that type to an interface. Callers must also prove equality and hashing do not read Fields.
func (Analysis) CanRejectInterfaceType ¶ added in v1.0.9
CanRejectInterfaceType reports whether a concrete type is absent from the closed interface domain. Unknown metadata must retain the runtime check. Callers must restrict predicates to basic types: reflection can synthesize composite types without a recorded conversion to that exact type.