Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for newPara (0.2 sec)

  1. src/go/internal/gcimporter/ureader.go

    	}
    
    	return types.NewTuple(params...)
    }
    
    func (r *reader) param() *types.Var {
    	r.Sync(pkgbits.SyncParam)
    
    	pos := r.pos()
    	pkg, name := r.localIdent()
    	typ := r.typ()
    
    	return types.NewParam(pos, pkg, name, typ)
    }
    
    // @@@ Objects
    
    func (r *reader) obj() (types.Object, []types.Type) {
    	r.Sync(pkgbits.SyncObject)
    
    	assert(!r.Bool())
    
    	pkg, name := r.p.objIdx(r.Reloc(pkgbits.RelocObj))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. pkg/scheduler/util/utils.go

    		return nil
    	}
    
    	oldData, err := json.Marshal(v1.Pod{Status: old.Status})
    	if err != nil {
    		return err
    	}
    
    	newData, err := json.Marshal(v1.Pod{Status: *newStatus})
    	if err != nil {
    		return err
    	}
    	patchBytes, err := strategicpatch.CreateTwoWayMergePatch(oldData, newData, &v1.Pod{})
    	if err != nil {
    		return fmt.Errorf("failed to create merge patch for pod %q/%q: %v", old.Namespace, old.Name, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/go/types/signature.go

    					check.error(name, InvalidSyntaxTree, "anonymous parameter")
    					// ok to continue
    				}
    				par := NewParam(name.Pos(), check.pkg, name.Name, typ)
    				check.declare(scope, name, par, scopePos)
    				params = append(params, par)
    			}
    			named = true
    		} else {
    			// anonymous parameter
    			par := NewParam(ftype.Pos(), check.pkg, "", typ)
    			check.recordImplicit(field, par)
    			params = append(params, par)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    				check.error(field.Name, InvalidSyntaxTree, "anonymous parameter")
    				// ok to continue
    			}
    			par := NewParam(field.Name.Pos(), check.pkg, name, typ)
    			check.declare(scope, field.Name, par, scopePos)
    			params = append(params, par)
    			named = true
    		} else {
    			// anonymous parameter
    			par := NewParam(field.Pos(), check.pkg, "", typ)
    			check.recordImplicit(field, par)
    			params = append(params, par)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 17 04:32:02 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  7. src/go/types/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. src/go/types/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. pkg/controller/ttl/ttl_controller.go

    	oldData, err := json.Marshal(node)
    	if err != nil {
    		return err
    	}
    	setIntAnnotation(node, annotationKey, value)
    	newData, err := json.Marshal(node)
    	if err != nil {
    		return err
    	}
    	patchBytes, err := strategicpatch.CreateTwoWayMergePatch(oldData, newData, &v1.Node{})
    	if err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    	obj := types2.NewFunc(nopos, pkg, "deferrangefunc", types2.NewSignatureType(nil, nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "extra", anyType)), false))
    	pkg.Scope().Insert(obj)
    
    	// func panicrangestate()
    	obj = types2.NewFunc(nopos, pkg, "panicrangestate", types2.NewSignatureType(nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "state", intType)), nil, false))
    	pkg.Scope().Insert(obj)
    
    	return pkg
    }()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top