MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / Package

Method Package

types/source.go:21–23  ·  view source on GitHub ↗

This file defines utilities for working with source positions or source-level named entities ("objects"). TODO(adonovan): test that {Value,Instruction}.Pos() positions match the originating syntax, as specified. --- Lookup functions for source-level named entities (types.Objects) --- Package returns

(obj *Package)

Source from the content-addressed store, hash-verified

19// It returns nil if no such SSA package has been created.
20//
21func (prog *Program) Package(obj *Package) *SSAPackage {
22 return prog.packages[obj]
23}
24
25// packageLevelValue returns the package-level value corresponding to
26// the specified named object, which may be a package-level const

Callers 11

packageLevelValueMethod · 0.95
doPackagesFunction · 0.95
BuildPackageFunction · 0.95
TestInitFunction · 0.45
TestPhiEliminationFunction · 0.45
importSSAMethod · 0.45
TestObjValueLookupFunction · 0.45
testValueForExprFunction · 0.45
TestEnclosingFunctionFunction · 0.45
TestSwitchesFunction · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestInitFunction · 0.36
TestPhiEliminationFunction · 0.36
TestObjValueLookupFunction · 0.36
testValueForExprFunction · 0.36
TestEnclosingFunctionFunction · 0.36
TestSwitchesFunction · 0.36
runFunction · 0.36