Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for inspectors (0.2 sec)

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

    	// when !analysisutil.Imports(pass.Pkg, "encoding/...").
    	// TODO(taking): Consider using a prepass to collect typeutil.Callees.
    
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		call := n.(*ast.CallExpr)
    		fn := typeutil.StaticCallee(pass.TypesInfo, call)
    		if fn == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. buildscripts/rewrite-old-new.sh

    		echo "server1 log:"
    		cat "${WORK_DIR}/server1.log"
    		echo "FAILED"
    		mkdir -p inspects
    		(
    			cd inspects
    			"${WORK_DIR}/mc" admin inspect minio/healing-rewrite-bucket/verify-build.sh/**
    		)
    
    		"${WORK_DIR}/mc" mb play/inspects
    		"${WORK_DIR}/mc" mirror inspects play/inspects
    
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go

    	// when !analysisutil.Imports(pass.Pkg, "time").
    	// TODO(taking): Consider using a prepass to collect typeutil.Callees.
    
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		call := n.(*ast.CallExpr)
    		fn, ok := typeutil.Callee(pass.TypesInfo, call).(*types.Func)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    	}
    	if f, wrongType := types.MissingMethod(V, T, false); wrongType {
    		return f
    	}
    	return nil
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    	nodeFilter := []ast.Node{
    		(*ast.TypeAssertExpr)(nil),
    		(*ast.TypeSwitchStmt)(nil),
    	}
    	var free typeparams.Free
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. 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) {
    		switch n := n.(type) {
    		case *ast.File:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	// Fast path: if the package doesn't import net/http,
    	// skip the traversal.
    	if !analysisutil.Imports(pass.Pkg, "net/http") {
    		return nil, nil
    	}
    
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. pilot/test/xdstest/validate.go

    			t.Errorf("transport protocol set, but missing tls inspector: %v", Dump(t, l))
    		}
    		if m.TransportProtocol == "" && len(m.ServerNames) > 0 {
    			t.Errorf("server names set, but missing tls inspector: %v", Dump(t, l))
    		}
    		// This is a bit suspect; I suspect this could be done with just http inspector without tls inspector,
    		// but this mirrors Envoy validation logic
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	// Do a complete pass to compute dead nodes.
    	dead := make(map[ast.Node]bool)
    	nodeFilter := []ast.Node{
    		(*ast.IfStmt)(nil),
    		(*ast.SwitchStmt)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    		(*ast.StarExpr)(nil),
    		(*ast.UnaryExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		switch x := n.(type) {
    		case *ast.CallExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go

    }
    
    // runUnkeyedLiteral checks if a composite literal is a struct literal with
    // unkeyed fields.
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.CompositeLit)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		cl := n.(*ast.CompositeLit)
    
    		typ := pass.TypesInfo.Types[cl].Type
    		if typ == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top