Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ResultOf (0.41 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	// It may be called by the Run function.
    	Report func(Diagnostic)
    
    	// ResultOf provides the inputs to this analysis pass, which are
    	// the corresponding results of its prerequisite analyzers.
    	// The map keys are the elements of Analysis.Required,
    	// and the type of each corresponding value is the required
    	// analysis's ResultType.
    	ResultOf map[*Analyzer]interface{}
    
    	// ReadFile returns the contents of the named file.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    			memo[k] = disallowed
    		}
    		return disallowed
    	}
    
    	// Scan the syntax looking for references to symbols
    	// that are disallowed by the version of the file.
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    	nodeFilter := []ast.Node{
    		(*ast.File)(nil),
    		(*ast.Ident)(nil),
    	}
    	var fileVersion string // "" => no check
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    	switch t := t.(type) {
    	case *types.Basic:
    		return t.Name()
    	case hasTypeName:
    		return t.Obj().Name()
    	}
    	return ""
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		call := n.(*ast.CallExpr)
    
    		if len(call.Args) != 1 {
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top