Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 92 for inspectors (0.23 sec)

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

    		"comma-separated list of names of methods of type func() string whose results must be used")
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	// Split functions into (pkg, name) pairs to save allocation later.
    	pkgFuncs := make(map[[2]string]bool, len(funcs))
    	for s := range funcs {
    		if i := strings.LastIndexByte(s, '.'); i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_builder_test.go

    				81: true,
    				// Even for passthrough, we do not need HTTP inspector because it is handled by TLS inspector
    				1000: true,
    			},
    			tls: map[int]bool{
    				// strict mode: inspector is set everywhere.
    				80:   false,
    				82:   false,
    				81:   false,
    				1000: false,
    			},
    		},
    	}
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/syntax/walk.go

    // for each of the non-nil children of root, followed by a call of f(nil).
    //
    // See Walk for caveats about shared nodes.
    func Inspect(root Node, f func(Node) bool) {
    	Walk(root, inspector(f))
    }
    
    type inspector func(Node) bool
    
    func (v inspector) Visit(node Node) Visitor {
    	if v(node) {
    		return v
    	}
    	return nil
    }
    
    // Walk traverses an AST in pre-order: It starts by calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package inspector
    
    // This file defines func typeOf(ast.Node) uint64.
    //
    // The initial map-based implementation was too slow;
    // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196
    
    import (
    	"go/ast"
    	"math"
    )
    
    const (
    	nArrayType = iota
    	nAssignStmt
    	nBadDecl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    	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
    		}
    		arg := call.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/go/ast/walk.go

    	case *Package:
    		for _, f := range n.Files {
    			Walk(v, f)
    		}
    
    	default:
    		panic(fmt.Sprintf("ast.Walk: unexpected node type %T", n))
    	}
    
    	v.Visit(nil)
    }
    
    type inspector func(Node) bool
    
    func (f inspector) Visit(node Node) Visitor {
    	if f(node) {
    		return f
    	}
    	return nil
    }
    
    // Inspect traverses an AST in depth-first order: It starts by calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.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.BinaryExpr)(nil),
    	}
    	seen := make(map[*ast.BinaryExpr]bool)
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		e := n.(*ast.BinaryExpr)
    		if seen[e] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top