You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeAnalyzerstruct {
// Requires is a set of analyzers that must run successfully// before this one on a given package. This analyzer may inspect// the outputs produced by each analyzer in Requires.// The graph over analyzers implied by Requires edges must be acyclic.//// Requires establishes a "horizontal" dependency between// analysis passes (different analyzers, same package).Requires []*Analyzer
}
Requires analyzers may be run to compute scope trees, CFGs etc before analysis begins.
For the Run function of dependency analyzers to be able to return value, they must be able to specify the return type. For example, the following analyzer:
In the above example, we need to know the concrete type of the value returned, so that we can use it. Thus, the struct needs a new field, ReturnType, of type reflect.Type.
Requires
analyzers may be run to compute scope trees, CFGs etc before analysis begins.For the
Run
function of dependency analyzers to be able to return value, they must be able to specify the return type. For example, the following analyzer:In the above example, we need to know the concrete type of the value returned, so that we can use it. Thus, the struct needs a new field,
ReturnType
, of typereflect.Type
.The text was updated successfully, but these errors were encountered: