- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ctrlflow (0.09 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package ctrlflow is an analysis that provides a syntactic // control-flow graph (CFG) for the body of a function. // It records whether a function cannot return. // By itself, it does not report any diagnostics. package ctrlflow import ( "go/ast" "go/types" "log" "reflect" "golang.org/x/tools/go/analysis"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go
cancelvars[v] = stmt } } return true }) if len(cancelvars) == 0 { return // no need to inspect CFG } // Obtain the CFG. cfgs := pass.ResultOf[ctrlflow.Analyzer].(*ctrlflow.CFGs) var g *cfg.CFG var sig *types.Signature switch node := node.(type) { case *ast.FuncDecl: sig, _ = pass.TypesInfo.Defs[node.Name].Type().(*types.Signature)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go
driver runs the required analyzers first and makes their results available in this map. Each Analyzer must return a value of the type described in its Analyzer.ResultType field. For example, the "ctrlflow" analyzer returns a *ctrlflow.CFGs, which provides a control-flow graph for each function in the package (see golang.org/x/tools/go/cfg); the "inspect" analyzer returns a value that
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/modules.txt
golang.org/x/tools/go/analysis/passes/buildtag golang.org/x/tools/go/analysis/passes/cgocall golang.org/x/tools/go/analysis/passes/composite golang.org/x/tools/go/analysis/passes/copylock golang.org/x/tools/go/analysis/passes/ctrlflow golang.org/x/tools/go/analysis/passes/defers golang.org/x/tools/go/analysis/passes/directive golang.org/x/tools/go/analysis/passes/errorsas golang.org/x/tools/go/analysis/passes/framepointer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go
// license that can be found in the LICENSE file. // Package shift defines an Analyzer that checks for shifts that exceed // the width of an integer. package shift // TODO(adonovan): integrate with ctrflow (CFG-based) dead code analysis. May // have impedance mismatch due to its (non-)treatment of constant // expressions (such as runtime.GOARCH=="386"). import ( "go/ast" "go/constant" "go/token" "go/types"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0)