- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for FactTypes (0.25 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/validate.go
} if a.Run == nil { return fmt.Errorf("analyzer %q has nil Run", a) } // fact types for _, f := range a.FactTypes { if f == nil { return fmt.Errorf("analyzer %s has nil FactType", a) } t := reflect.TypeOf(f) if prev := factTypes[t]; prev != nil { return fmt.Errorf("fact type %s registered by two analyzers: %v, %v", t, a, prev) } if t.Kind() != reflect.Ptr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go
ResultType reflect.Type // FactTypes indicates that this analyzer imports and exports // Facts of the specified concrete types. // An analyzer that uses facts may assume that its import // dependencies have been similarly analyzed before it runs. // Facts must be pointers. // // FactTypes establishes a "vertical" dependency between
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
var registerFacts func(a *analysis.Analyzer) bool registerFacts = func(a *analysis.Analyzer) bool { act, ok := actions[a] if !ok { act = new(action) var usesFacts bool for _, f := range a.FactTypes { usesFacts = true gob.Register(f) } for _, req := range a.Requires { if registerFacts(req) { usesFacts = true } } act.usesFacts = usesFacts actions[a] = act
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
} } // Register fact types of skipped analyzers // in case we encounter them in imported files. kept := expand(analyzers) for a := range everything { if !kept[a] { for _, f := range a.FactTypes { gob.Register(f) } } } return analyzers } func expand(analyzers []*analysis.Analyzer) map[*analysis.Analyzer]bool { seen := make(map[*analysis.Analyzer]bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/printf", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, ResultType: reflect.TypeOf((*Result)(nil)), FactTypes: []analysis.Fact{new(isWrapper)}, } // Kind is a kind of fmt function behavior. type Kind int const ( KindNone Kind = iota // not a fmt wrapper function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0)