- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,341 for sameId (0.56 sec)
-
src/cmd/compile/internal/types2/lookup.go
return 0, false } type instanceLookup struct { // buf is used to avoid allocating the map m in the common case of a small // number of instances. buf [3]*Named m map[*Named][]*Named } func (l *instanceLookup) lookup(inst *Named) *Named { for _, t := range l.buf { if t != nil && Identical(inst, t) { return t } } for _, t := range l.m[inst.Origin()] { if Identical(inst, t) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 19.8K bytes - Viewed (0) -
src/go/types/lookup.go
return 0, false } type instanceLookup struct { // buf is used to avoid allocating the map m in the common case of a small // number of instances. buf [3]*Named m map[*Named][]*Named } func (l *instanceLookup) lookup(inst *Named) *Named { for _, t := range l.buf { if t != nil && Identical(inst, t) { return t } } for _, t := range l.m[inst.Origin()] { if Identical(inst, t) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 19.9K bytes - Viewed (0) -
src/go/types/object.go
// setParent sets the parent scope of the object. setParent(*Scope) // sameId reports whether obj.Id() and Id(pkg, name) are the same. // If foldCase is true, names are considered equal if they are equal with case folding // and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal). sameId(pkg *Package, name string, foldCase bool) bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object.go
// setParent sets the parent scope of the object. setParent(*Scope) // sameId reports whether obj.Id() and Id(pkg, name) are the same. // If foldCase is true, names are considered equal if they are equal with case folding // and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal). sameId(pkg *Package, name string, foldCase bool) bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/scope.go
} // InsertLazy is like Insert, but allows deferring construction of the // inserted object until it's accessed with Lookup. The Object // returned by resolve must have the same name as given to InsertLazy. // If s already contains an alternative object with the same name, // InsertLazy leaves s unchanged and returns false. Otherwise it // records the binding and returns true. The object's parent scope // will be set to s after resolve is called.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.8K bytes - Viewed (0) -
src/go/types/scope.go
} // InsertLazy is like Insert, but allows deferring construction of the // inserted object until it's accessed with Lookup. The Object // returned by resolve must have the same name as given to InsertLazy. // If s already contains an alternative object with the same name, // InsertLazy leaves s unchanged and returns false. Otherwise it // records the binding and returns true. The object's parent scope // will be set to s after resolve is called.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.9K bytes - Viewed (0) -
src/go/types/predicates.go
if alias, _ := t.(*Alias); alias != nil && alias.tparams != nil && alias.targs == nil { return true } named := asNamed(t) return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0 } // Comparable reports whether values of type T are comparable. func Comparable(T Type) bool { return comparable(T, true, nil, nil) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
if alias, _ := t.(*Alias); alias != nil && alias.tparams != nil && alias.targs == nil { return true } named := asNamed(t) return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0 } // Comparable reports whether values of type T are comparable. func Comparable(T Type) bool { return comparable(T, true, nil, nil) }
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/go/types/unify.go
// Two channel types unify if their value types unify // and if they have the same direction. // The channel direction is ignored for inexact unification. if y, ok := y.(*Chan); ok { return (mode&exact == 0 || x.dir == y.dir) && u.nify(x.elem, y.elem, emode, p) } case *Named: // Two named types unify if their type names originate in the same type declaration. // If they are instantiated, their type argument lists must unify.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
// Two channel types unify if their value types unify // and if they have the same direction. // The channel direction is ignored for inexact unification. if y, ok := y.(*Chan); ok { return (mode&exact == 0 || x.dir == y.dir) && u.nify(x.elem, y.elem, emode, p) } case *Named: // Two named types unify if their type names originate in the same type declaration. // If they are instantiated, their type argument lists must unify.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0)