ssabuilder

package
v0.0.0-...-ad4f0ff Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

A package for a easier handling of creating the SSA representation of a program

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(path string, sourcefiles []string) (*ssa.Package, error)

Build returns the main package for given sourcefiles.

func NewSsaHelper

func NewSsaHelper(path string, sourcefiles []string) (*ssaHelper, error)

func ReplaceSend

func ReplaceSend(pkgs []*ssa.Package)

ReplaceSend replaces the ssa.Send with the Send implemented in this package

Types

type Send

type Send struct {
	// contains filtered or unexported fields
}

func (*Send) AddCall

func (c *Send) AddCall(ci ssa.CallInstruction)

func (*Send) GetCalls

func (c *Send) GetCalls() []ssa.CallInstruction

func (*Send) GetSend

func (c *Send) GetSend() *ssa.Send

func (*Send) SetSend

func (c *Send) SetSend(s *ssa.Send)

func (*Send) String

func (c *Send) String() string

Jump to

Keyboard shortcuts

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