package
Version:
v0.0.0-...-23e6066
Opens a new window with list of versions in this module.
Published: May 3, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package globals provides an AST visitor that calls the visit function for all
global identifiers.
GetIdent returns the identifier associated with the given expression by
removing parentheses if needed.
Visit traverses the provided AST and calls f() for each identifier that
refers to global names. The global name must be defined in the file itself.
The function f() is allowed to modify the identifier, for example, to rename
uses of global references.
SymKind specifies the kind of a global symbol. For example, a variable, const
function, etc.
const (
KindUnknown SymKind = iota
KindImport
KindType
KindVar
KindConst
KindFunction
KindReceiver
KindParameter
KindResult
KindTag
)
Constants for different kinds of symbols.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.