rewrite

package
v0.3.5-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRewrites

func ApplyRewrites(packages []*packages.Package)

ApplyRewrites applies a series of rewrite steps to the packages and all its dependencies. The rewrites are meant to preserve soundness of the analysis, under the condition that the focus points of the analysis are not the entrypoint or endpoints of analyses. The rewrites are:

All the rewrites from the base rewrites used in capslock package: - calls to sort.Slice and sort.SliceStable are removed and replaced by calls to the functions used in sorting. - calls to (sync.Once).Do are replaced by a call to the method in the sync.Once object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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