- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 618 for Embeddeds (0.15 sec)
-
src/go/types/typeset.go
} else { unionSets = make(map[*Union]*_TypeSet) } // Methods of embedded interfaces are collected unchanged; i.e., the identity // of a method I.m's Func Object of an interface I is the same as that of // the method m in an interface that embeds interface I. On the other hand, // if a method is embedded via multiple overlapping embedded interfaces, we // don't provide a guarantee which "original m" got chosen for the embedding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeset.go
} else { unionSets = make(map[*Union]*_TypeSet) } // Methods of embedded interfaces are collected unchanged; i.e., the identity // of a method I.m's Func Object of an interface I is the same as that of // the method m in an interface that embeds interface I. On the other hand, // if a method is embedded via multiple overlapping embedded interfaces, we // don't provide a guarantee which "original m" got chosen for the embedding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/validtype.go
return false } } case *Union: for _, t := range t.terms { if !check.validType0(pos, t.typ, nest, path) { return false } } case *Interface: for _, etyp := range t.embeddeds { if !check.validType0(pos, etyp, nest, path) { return false } } case *Named: // TODO(gri) The optimization below is incorrect (see go.dev/issue/65711):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 13:22:37 UTC 2024 - 10.2K bytes - Viewed (0) -
src/go/types/validtype.go
return false } } case *Union: for _, t := range t.terms { if !check.validType0(pos, t.typ, nest, path) { return false } } case *Interface: for _, etyp := range t.embeddeds { if !check.validType0(pos, etyp, nest, path) { return false } } case *Named: // TODO(gri) The optimization below is incorrect (see go.dev/issue/65711):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.3K bytes - Viewed (0) -
src/go/types/instantiate.go
} return checkComparability() } // mentions reports whether type T "mentions" typ in an (embedded) element or term // of T (whether typ is in the type set of T or not). For better error messages. func mentions(T, typ Type) bool { switch T := T.(type) { case *Interface: for _, e := range T.embeddeds { if mentions(e, typ) { return true } } case *Union: for _, t := range T.terms {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
// 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 underlying = iface }
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
// 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 underlying = iface }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
} return checkComparability() } // mentions reports whether type T "mentions" typ in an (embedded) element or term // of T (whether typ is in the type set of T or not). For better error messages. func mentions(T, typ Type) bool { switch T := T.(type) { case *Interface: for _, e := range T.embeddeds { if mentions(e, typ) { return true } } case *Union: for _, t := range T.terms {
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/infer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0) -
src/go/types/infer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.5K bytes - Viewed (0)