source

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package source can be used to identify SSA values that are Sources.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "source",
	Doc:        "This analyzer identifies ssa.Values that are sources.",
	Flags:      config.FlagSet,
	Run:        run,
	Requires:   []*analysis.Analyzer{buildssa.Analyzer, fieldtags.Analyzer, fieldpropagator.Analyzer},
	ResultType: reflect.TypeOf(new(ResultType)).Elem(),
}

Functions

This section is empty.

Types

type ResultType

type ResultType = map[*ssa.Function][]*Source

type Source

type Source struct {
	Node ssa.Node
}

A Source is a node in the SSA graph that is used as a starting point in a propagation analysis.

func New

func New(in ssa.Node) *Source

New constructs a new Source.

func (*Source) Pos added in v0.1.4

func (s *Source) Pos() token.Pos

Pos returns the token position of the SSA Node associated with the Source.

Jump to

Keyboard shortcuts

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