type go.pact.im/x/plumb/internal/diag.Error
55 uses
go.pact.im/x/plumb/internal/diag (current package)
diag.go#L62: type Error struct {
diag.go#L67: func (e *Error) Error() string {
diag.go#L75: func (e *Error) Unwrap() error { return e.err }
diag.go#L80: func Errorf(pos token.Position, kind ErrorKind, detail string, args ...any) *Error {
diag.go#L82: return &Error{pos: pos, err: wrapped}
diag.go#L90: func Sentinel(msg string) *Error {
diag.go#L91: return &Error{err: errors.New(msg)}
diag.go#L115: func Earlier(a, b *Error) *Error {
go.pact.im/x/plumb/internal/discover
discover.go#L29: func directiveNames(doc *ast.CommentGroup, fset *token.FileSet) ([]string, *diag.Error) {
discover.go#L39: func appendDirectiveNames(prior []string, doc *ast.CommentGroup, fset *token.FileSet) ([]string, *diag.Error) {
discover.go#L101: func Analyze(pkgs []*Package, destPath, outputBase string) ([]*Provider, *diag.Error) {
discover.go#L141: func scanFile(pkg *Package, file *ast.File) ([]*Provider, *diag.Error) {
discover.go#L143: var declFault *diag.Error
discover.go#L146: var err *diag.Error
discover.go#L179: func reportStrayDirectives(pkg *Package, file *ast.File) *diag.Error {
discover.go#L250: func specDirectiveNames(gd *ast.GenDecl, specDoc *ast.CommentGroup, fset *token.FileSet) ([]string, *diag.Error) {
discover.go#L258: func scanFuncDecl(pkg *Package, fd *ast.FuncDecl) ([]*Provider, *diag.Error) {
discover.go#L276: func scanFunc(pkg *Package, fn *types.Func, names []string) ([]*Provider, *diag.Error) {
discover.go#L304: func scanMethod(pkg *Package, fn *types.Func, names []string) ([]*Provider, *diag.Error) {
discover.go#L362: func scanGenDecl(pkg *Package, gd *ast.GenDecl) ([]*Provider, *diag.Error) {
discover.go#L404: func scanValueSpec(pkg *Package, gd *ast.GenDecl, s *ast.ValueSpec) ([]*Provider, *diag.Error) {
discover.go#L418: func scanVar(pkg *Package, s *ast.ValueSpec, names []string) ([]*Provider, *diag.Error) {
discover.go#L460: func scanConversion(pkg *Package, s *ast.ValueSpec, ident *ast.Ident, names []string) ([]*Provider, *diag.Error) {
discover.go#L526: func scanConst(pkg *Package, s *ast.ValueSpec, names []string) ([]*Provider, *diag.Error) {
discover.go#L558: func scanTypeSpec(pkg *Package, gd *ast.GenDecl, s *ast.TypeSpec) ([]*Provider, *diag.Error) {
discover.go#L645: func structProviders(pkg *Package, s *ast.TypeSpec, tn *types.TypeName, names []string) ([]*Provider, *diag.Error) {
discover.go#L679: func scanStructFields(pkg *Package, st *ast.StructType, owner types.Type) ([]*Provider, *diag.Error) {
discover.go#L733: func scanInterfaceMethods(pkg *Package, it *ast.InterfaceType, owner types.Type) ([]*Provider, *diag.Error) {
go.pact.im/x/plumb/internal/gen
gen.go#L93: func buildDestInfo(opts Options, pkgs []*discover.Package) (*solve.DestInfo, *diag.Error) {
go.pact.im/x/plumb/internal/solve
checks.go#L14: func (s *solver) checkReachability(pl *Plan) *diag.Error {
checks.go#L127: func (s *solver) checkReservedAndCollision(pl *Plan) *diag.Error {
finalize.go#L25: func (s *solver) finalize() (*Plan, *diag.Error) {
finalize.go#L117: func (s *solver) resolveInput(in *Instance, inp InputSlot) (ArgRef, *diag.Error) {
instance.go#L100: func instantiate(p *discover.Provider, ctxt *types.Context, args []types.Type) (in *Instance, err *diag.Error, miss error) {
instance.go#L256: func classifyResults(p *discover.Provider, in *Instance, sig *types.Signature) *diag.Error {
joint.go#L37: func (s *solver) tryJoint() (bool, *diag.Error) {
order.go#L25: func (s *solver) topoOrder(pl *Plan) ([]*Instance, *diag.Error) {
order.go#L75: func (s *solver) cycleError(pl *Plan, insts []*Instance, emitted map[*Instance]bool, deps map[*Instance]map[*Instance]bool) *diag.Error {
revision.go#L58: func (s *solver) reviseOrSplit(p *discover.Provider, bind map[*types.TypeParam]types.Type) *diag.Error {
solve.go#L207: func Set(name string, provs []*discover.Provider, destPath, outputBase string, dest *DestInfo, ctxt *types.Context) (*Plan, *diag.Error) {
solve.go#L249: func (s *solver) run() (*Plan, *diag.Error) {
solve.go#L270: func (s *solver) classify() *diag.Error {
solve.go#L318: func (s *solver) seed() *diag.Error {
solve.go#L347: func (s *solver) solveDemands() *diag.Error {
solve.go#L403: func (s *solver) tryWorklist(d types.Type) (bool, *diag.Error) {
solve.go#L437: func (s *solver) viableSingle(d types.Type) ([]matchCand, *diag.Error) {
solve.go#L508: func (s *solver) instantiateTemplate(p *discover.Provider, bind map[*types.TypeParam]types.Type) (bool, *diag.Error) {
solve.go#L593: func (s *solver) addInstance(in *Instance) *diag.Error {
solve.go#L625: func (s *solver) checkUnusedTemplates() *diag.Error {
solve.go#L730: func (s *solver) checkInputType(in *Instance, t types.Type) *diag.Error {
solve.go#L744: func ambiguousTemplates(cs []matchCand) *diag.Error {
solve.go#L759: func (s *solver) checkTemplateAmbiguity() *diag.Error {
solve.go#L798: func ambiguousTemplatesFor(ps []*discover.Provider, d types.Type) *diag.Error {
solve.go#L804: func ambiguousProducers(a, b *Instance, t types.Type) *diag.Error {