deadcode

package
v0.0.0-...-47ce07a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTheClasses

func AllTheClasses(fs *ast.FileSet) map[string]ast.Node

AllTheClasses returns a list of all classes

func AllTheFunctions

func AllTheFunctions(fs *ast.FileSet) map[string]ast.Node

AllTheFunctions returns a list of all functions

func DeadClasses

func DeadClasses(fs *ast.FileSet, entryPoints []string) []ast.Node

DeadClasses returns a list of dead classes

func DeadFunctions

func DeadFunctions(fs *ast.FileSet, entryPoints []string) []ast.Node

DeadFunctions returns a list of dead functions

func EliminateCalls

func EliminateCalls(nodes []ast.Node, knownFunctions map[string]ast.Node)

EliminateCalls eliminates all dead calls

func EliminateClasses

func EliminateClasses(nodes []ast.Node, knownClasses map[string]ast.Node)

EliminateClasses eliminates all dead classes

Types

This section is empty.

Jump to

Keyboard shortcuts

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