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)
| 19 | // It returns nil if no such SSA package has been created. |
| 20 | // |
| 21 | func (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 |
no outgoing calls