ssainternal

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package ssainternal exposes setters for internals of go/ssa. It cannot actually depend on symbols from go/ssa.

Index

Constants

This section is empty.

Variables

View Source
var SetNoReturn = func(prog any, noreturn func(*types.Func) bool) {
	panic("golang.org/x/tools/go/ssa not linked into application")
}

SetNoReturn sets the predicate used when building the ssa.Program prog that reports whether a given function cannot return. This may be used to prune spurious control flow edges after (e.g.) log.Fatal, improving the precision of analyses.

You must link golang.org/x/tools/go/ssa into your application for this function to be non-nil.

TODO(adonovan): add (*ssa.Program).SetNoReturn to the public API.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL