- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for bond (0.65 sec)
-
src/cmd/compile/internal/types2/decl.go
}() // Keep track of bounds for later validation. var bound Type for i, f := range list { // Optimization: Re-use the previous type bound if it hasn't changed. // This also preserves the grouped output of type parameter lists // when printing type strings. if i == 0 || f.Type != list[i-1].Type { bound = check.bound(f.Type) if isTypeParam(bound) { // We may be able to allow this since it is now well-defined what
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
tpar.iface() // The type parameter bound is parameterized with the same type parameters // as the instantiated type; before we can use it for bounds checking we // need to instantiate it with the type arguments with which we instantiated // the parameterized type. bound := check.subst(pos, tpar.bound, smap, nil, ctxt) var cause string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
r.retVars = nil r.defers = nil } r.rewritten[nfor] = block } func (r *rewriter) cond(op syntax.Operator, x, y syntax.Expr) *syntax.Operation { cond := &syntax.Operation{Op: op, X: x, Y: y} tv := syntax.TypeAndValue{Type: r.bool.Type()} tv.SetIsValue() cond.SetTypeInfo(tv) return cond } func (r *rewriter) setState(val abi.RF_State, pos syntax.Pos) *syntax.AssignStmt {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
} // WithAction returns a Shell identical to sh, but bound to Action a. func (sh *Shell) WithAction(a *Action) *Shell { sh2 := *sh sh2.action = a return &sh2 } // Shell returns a shell for running commands on behalf of Action a. func (b *Builder) Shell(a *Action) *Shell { if a == nil { // The root shell has a nil Action. The point of this method is to // create a Shell bound to an Action, so disallow nil Actions here.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
// use anywhere, but it may report a false negative if the type set has not been // computed yet. func hasEmptyTypeset(t Type) bool { if tpar, _ := Unalias(t).(*TypeParam); tpar != nil && tpar.bound != nil { iface, _ := safeUnderlying(tpar.bound).(*Interface) return iface != nil && iface.tset != nil && iface.tset.IsEmpty() } return false } // isGeneric reports whether a type is a generic, uninstantiated type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/schedule.go
if len(values) == 0 { return values } f := values[0].Block.Func // find all stores // Members of values that are store values. // A constant bound allows this to be stack-allocated. 64 is // enough to cover almost every storeOrder call. stores := make([]*Value, 0, 64) hasNilCheck := false sset.clear() // sset is the set of stores that are used in other values
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 15:53:17 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
// if uint(newLen) <= uint(oldCap) nif := ir.NewIfStmt(base.Pos, nil, nil, nil) nuint := typecheck.Conv(newLen, types.Types[types.TUINT]) scapuint := typecheck.Conv(oldCap, types.Types[types.TUINT]) nif.Cond = ir.NewBinaryExpr(base.Pos, ir.OLE, nuint, scapuint) nif.Likely = true // then { s = s[:newLen] } slice := ir.NewSliceExpr(base.Pos, ir.OSLICE, s, nil, newLen, nil) slice.SetBounded(true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
// equivalent by determining the types for a given list of (bound) // type parameters which may occur within x and y. If x and y are // structurally different (say []T vs chan T), or conflicting // types are determined for type parameters, unification fails. // If unification succeeds, as a side-effect, the types of the // bound type parameters may be determined. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0)