Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for electron (0.42 sec)

  1. src/cmd/compile/internal/types2/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: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/cmd/covdata/metamerge.go

    // of interest here: the "-pcombine" flag provided by merge, the
    // "-pkg" option provided by all merge/subtract/intersect, and
    // a regular vanilla merge with no package selection
    //
    // In the -pcombine case, we're essentially glomming together all the
    // meta-data for all packages and all functions, meaning that
    // everything we see in a given package needs to be added into the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:17:47 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    	if !types.IsMethodApplicable(recv, m) {
    		base.FatalfAt(pos, "invalid method expression %v.%v (needs pointer receiver)", recv, sym)
    	}
    
    	n := ir.NewSelectorExpr(pos, ir.OMETHEXPR, ir.TypeNode(recv), sym)
    	n.Selection = m
    	n.SetType(NewMethodType(m.Type, recv))
    	n.SetTypecheck(1)
    	return n
    }
    
    func derefall(t *types.Type) *types.Type {
    	for t != nil && t.IsPtr() {
    		t = t.Elem()
    	}
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/walk.go

    // and omits nil-pointer checks for ptr.
    func boundedDotPtr(pos src.XPos, ptr ir.Node, field *types.Field) *ir.SelectorExpr {
    	sel := ir.NewSelectorExpr(pos, ir.ODOTPTR, ptr, field.Sym)
    	sel.Selection = field
    	sel.SetType(field.Type)
    	sel.SetTypecheck(1)
    	sel.SetBounded(true) // guaranteed not to fault
    	return sel
    }
    
    func runtimeField(name string, offset int64, typ *types.Type) *types.Field {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/README.vendor

    a "vendor/" prefix also maintains the invariant that standard
    library packages begin with a dotless path element.
    
    The module requirements of std and cmd do not influence version
    selection in other modules. They are only considered when running
    module commands like 'go get' and 'go mod vendor' from a directory
    in GOROOT/src.
    
    Maintaining vendor directories
    ==============================
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. doc/go_spec.html

    or assignment are not yet evaluated.
    </li>
    
    <li>
    If one or more of the communications can proceed,
    a single one that can proceed is chosen via a uniform pseudo-random selection.
    Otherwise, if there is a default case, that case is chosen.
    If there is no default case, the "select" statement blocks until
    at least one of the communications can proceed.
    </li>
    
    <li>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api.go

    	//
    	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
    	// associated with a specific node but with all files belonging to a package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/expr.go

    	//
    	//	reflect.Value.Method       - func(int) reflect.Value
    	//	reflect.Value.MethodByName - func(string) reflect.Value
    	methodName := dot.Sel.Name
    	t := dot.Selection.Type
    
    	// Check the number of arguments and return values.
    	if t.NumParams() != 1 || (t.NumResults() != 1 && t.NumResults() != 2) {
    		return
    	}
    
    	// Check the type of the argument.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/check.go

    	assert(obj != nil && (recv == nil || len(index) > 0))
    	check.recordUse(x.Sel, obj)
    	if m := check.Selections; m != nil {
    		m[x] = &Selection{kind, recv, obj, index, indirect}
    	}
    }
    
    func (check *Checker) recordScope(node syntax.Node, scope *Scope) {
    	assert(node != nil)
    	assert(scope != nil)
    	if m := check.Scopes; m != nil {
    		m[node] = scope
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top