Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for Selections (0.22 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. subprojects/core-api/src/main/java/org/gradle/api/artifacts/DependencyArtifactSelector.java

     * limitations under the License.
     */
    package org.gradle.api.artifacts;
    
    import javax.annotation.Nullable;
    
    /**
     * Details about an artifact selection in the context of a dependency substitution.
     *
     * Artifact selections are handy as a migration path from the Maven or Ivy ecosystem,
     * where different "variants" are actually represented as different artifacts, with
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 23 15:47:10 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/callee.go

    	}
    
    	var obj types.Object
    	switch fun := fun.(type) {
    	case *ast.Ident:
    		obj = info.Uses[fun] // type, var, builtin, or declared func
    	case *ast.SelectorExpr:
    		if sel, ok := info.Selections[fun]; ok {
    			obj = sel.Obj() // method or field
    		} else {
    			obj = info.Uses[fun.Sel] // qualified identifier?
    		}
    	}
    	if _, ok := obj.(*types.TypeName); ok {
    		return nil // T(x) is a conversion, not a call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/go/types/self_test.go

    			info = &Info{
    				Types:      make(map[ast.Expr]TypeAndValue),
    				Defs:       make(map[*ast.Ident]Object),
    				Uses:       make(map[*ast.Ident]Object),
    				Implicits:  make(map[ast.Node]Object),
    				Selections: make(map[*ast.SelectorExpr]*Selection),
    				Scopes:     make(map[ast.Node]*Scope),
    			}
    		}
    		if _, err := conf.Check(path, fset, files, info); err != nil {
    			b.Fatal(err)
    		}
    	}
    	b.StopTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/types2/self_test.go

    				Types:      make(map[syntax.Expr]TypeAndValue),
    				Defs:       make(map[*syntax.Name]Object),
    				Uses:       make(map[*syntax.Name]Object),
    				Implicits:  make(map[syntax.Node]Object),
    				Selections: make(map[*syntax.SelectorExpr]*Selection),
    				Scopes:     make(map[syntax.Node]*Scope),
    			}
    		}
    		if _, err := conf.Check(path, files, info); err != nil {
    			b.Fatal(err)
    		}
    	}
    	b.StopTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top