Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 274 for Selections (0.2 sec)

  1. src/go/types/selection.go

    func (s *Selection) Recv() Type { return s.recv }
    
    // Obj returns the object denoted by x.f; a *Var for
    // a field selection, and a *Func in all other cases.
    func (s *Selection) Obj() Object { return s.obj }
    
    // Type returns the type of x.f, which may be different from the type of f.
    // See Selection for more information.
    func (s *Selection) Type() Type {
    	switch s.kind {
    	case MethodVal:
    		// The type of x.f is a method with its receiver type set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/selection.go

    // previous (implicit) operations are always field selections.
    // Each element of Indices specifies an implicit field (a, b, c)
    // by its index in the struct type of the field selection operand.
    //
    // For a FieldVal operation, the final selection refers to the field
    // specified by Selection.Obj.
    //
    // For a MethodVal operation, the final selection refers to a method.
    // If the "pointerness" of the method's declared receiver does not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/go/types/api.go

    	//     *ast.Field         anonymous parameter *Var (incl. unnamed results)
    	//
    	Implicits map[ast.Node]Object
    
    	// Selections maps selector expressions (excluding qualified identifiers)
    	// to their corresponding selections.
    	Selections map[*ast.SelectorExpr]*Selection
    
    	// Scopes maps ast.Nodes to the scopes they define. Package scopes are not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api.go

    	//     *syntax.Field         anonymous parameter *Var (incl. unnamed results)
    	//
    	Implicits map[syntax.Node]Object
    
    	// Selections maps selector expressions (excluding qualified identifiers)
    	// to their corresponding selections.
    	Selections map[*syntax.SelectorExpr]*Selection
    
    	// Scopes maps syntax.Nodes to the scopes they define. Package scopes are not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/go/types/eval_test.go

    		expr, err := parser.ParseExprFrom(fset, "eval", str, 0)
    		if err != nil {
    			return nil, err
    		}
    
    		info := &Info{
    			Uses:       make(map[*ast.Ident]Object),
    			Selections: make(map[*ast.SelectorExpr]*Selection),
    		}
    		if err := CheckExpr(fset, pkg, pos, expr, info); err != nil {
    			return nil, fmt.Errorf("CheckExpr(%q) failed: %s", str, err)
    		}
    		switch expr := expr.(type) {
    		case *ast.Ident:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/model.go

    	VirtualService []config.Config
    	// AllowedReferences stores all allowed references, from Reference -> to Reference(s)
    	AllowedReferences AllowedReferences
    	// ReferencedNamespaceKeys stores the label key of all namespace selections. This allows us to quickly
    	// determine if a namespace update could have impacted any Gateways. See namespaceEvent.
    	ReferencedNamespaceKeys sets.String
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:09 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go

    	"Skipf",
    	"SkipNow",
    }
    
    // forbiddenMethod decomposes a call x.m() into (x, x.m, m) where
    // x is a variable, x.m is a selection, and m is the static callee m.
    // Returns (nil, nil, nil) if call is not of this form.
    func forbiddenMethod(info *types.Info, call *ast.CallExpr) (*types.Var, *types.Selection, *types.Func) {
    	// Compare to typeutil.StaticCallee.
    	fun := astutil.Unparen(call.Fun)
    	selExpr, ok := fun.(*ast.SelectorExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    				}
    			}
    			break
    		}
    
    		if _, ok := stack[i].(*ast.CallExpr); ok {
    			ncalls++
    		}
    	}
    	return nil, 0
    }
    
    // rootIdent finds the root identifier x in a chain of selections x.y.z, or nil if not found.
    func rootIdent(n ast.Node) *ast.Ident {
    	switch n := n.(type) {
    	case *ast.SelectorExpr:
    		return rootIdent(n.X)
    	case *ast.Ident:
    		return n
    	default:
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    }
    
    // isMethodExpr reports whether a call is to a MethodExpr.
    func isMethodExpr(info *types.Info, c *ast.CallExpr) bool {
    	s, ok := c.Fun.(*ast.SelectorExpr)
    	if !ok {
    		return false
    	}
    	sel := info.Selections[s]
    	return sel != nil && sel.Kind() == types.MethodExpr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    					sel := call.Fun.(*syntax.SelectorExpr)
    					use := info.Uses[sel.Sel].(*Func)
    					selection := info.Selections[sel]
    					if selection.Kind() != MethodVal {
    						t.Errorf("Selection kind = %v, want %v", selection.Kind(), MethodVal)
    					}
    					if selection.Obj() != use {
    						t.Errorf("info.Selections contains %v, want %v", selection.Obj(), use)
    					}
    					switch sel.Sel.Value {
    					case "m":
    						dmm = use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top