- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for factTypes (0.18 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/passes/ctrlflow/ctrlflow.go
Name: "ctrlflow", Doc: "build a control-flow graph", URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/ctrlflow", Run: run, ResultType: reflect.TypeOf(new(CFGs)), FactTypes: []analysis.Fact{new(noReturn)}, Requires: []*analysis.Analyzer{inspect.Analyzer}, } // noReturn is a fact indicating that a function does not return. type noReturn struct{} func (*noReturn) AFact() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.6K bytes - Viewed (0)