- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for newInterface (0.18 sec)
-
pkg/kube/controllers/common.go
return } handler(Event{ New: o, Event: EventAdd, }) }, UpdateFunc: func(oldInterface, newInterface any) { oldObj := ExtractObject(oldInterface) if oldObj == nil { return } newObj := ExtractObject(newInterface) if newObj == nil { return } handler(Event{ Old: oldObj, New: newObj, Event: EventUpdate, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 08:27:29 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
return &Union{terms} } case *Interface: methods, mcopied := subst.funcList(t.methods) embeddeds, ecopied := subst.typeList(t.embeddeds) if mcopied || ecopied { iface := subst.check.newInterface() iface.embeddeds = embeddeds iface.embedPos = t.embedPos iface.implicit = t.implicit assert(t.complete) // otherwise we are copying incomplete data iface.complete = t.complete
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/go/types/subst.go
return &Union{terms} } case *Interface: methods, mcopied := subst.funcList(t.methods) embeddeds, ecopied := subst.typeList(t.embeddeds) if mcopied || ecopied { iface := subst.check.newInterface() iface.embeddeds = embeddeds iface.embedPos = t.embedPos iface.implicit = t.implicit assert(t.complete) // otherwise we are copying incomplete data iface.complete = t.complete
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
// possible that it wasn't substituted. In this case we need to create // a new *Interface before modifying receivers. if iface == orig.underlying { old := iface iface = check.newInterface() iface.embeddeds = old.embeddeds assert(old.complete) // otherwise we are copying incomplete data iface.complete = old.complete iface.implicit = old.implicit // should be false but be conservative
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/go/types/named.go
// possible that it wasn't substituted. In this case we need to create // a new *Interface before modifying receivers. if iface == orig.underlying { old := iface iface = check.newInterface() iface.embeddeds = old.embeddeds assert(old.complete) // otherwise we are copying incomplete data iface.complete = old.complete iface.implicit = old.implicit // should be false but be conservative
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/go/types/typexpr.go
return typ case *ast.FuncType: typ := new(Signature) setDefType(def, typ) check.funcType(typ, nil, e) return typ case *ast.InterfaceType: typ := check.newInterface() setDefType(def, typ) check.interfaceType(typ, e, def) return typ case *ast.MapType: typ := new(Map) setDefType(def, typ) typ.key = check.varType(e.Key)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
check.use(e0) case *syntax.FuncType: typ := new(Signature) setDefType(def, typ) check.funcType(typ, nil, nil, e) return typ case *syntax.InterfaceType: typ := check.newInterface() setDefType(def, typ) check.interfaceType(typ, e, def) return typ case *syntax.MapType: typ := new(Map) setDefType(def, typ) typ.key = check.varType(e.Key)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
func newBasic(kind Kind, obj Object) *Type { t := newType(kind) t.obj = obj return t } // NewInterface returns a new interface for the given methods and // embedded types. Embedded types are specified as fields with no Sym. func NewInterface(methods []*Field) *Type { t := newType(TINTER) t.SetInterface(methods) for _, f := range methods {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"NewArray", Func, 5}, {"NewChan", Func, 5}, {"NewChecker", Func, 5}, {"NewConst", Func, 5}, {"NewContext", Func, 18}, {"NewField", Func, 5}, {"NewFunc", Func, 5}, {"NewInterface", Func, 5}, {"NewInterfaceType", Func, 11}, {"NewLabel", Func, 5}, {"NewMap", Func, 5}, {"NewMethodSet", Func, 5}, {"NewNamed", Func, 5}, {"NewPackage", Func, 5}, {"NewParam", Func, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)