- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for HasTag (0.27 sec)
-
src/go/build/constraint/expr_test.go
} tags := make(map[string]bool) wantTags := make(map[string]bool) for _, tag := range strings.Fields(tt.tags) { wantTags[tag] = true } hasTag := func(tag string) bool { tags[tag] = true return tag == "yes" } ok := x.Eval(hasTag) if ok != tt.ok || !reflect.DeepEqual(tags, wantTags) { t.Errorf("Eval(%#q):\nhave ok=%v, tags=%v\nwant ok=%v, tags=%v", tt.in, ok, tags, tt.ok, wantTags)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 18 22:36:55 UTC 2021 - 7.6K bytes - Viewed (0) -
src/internal/reflectlite/type.go
func (n name) tag() string { if !n.hasTag() { return "" } i, l := n.readVarint(1) i2, l2 := n.readVarint(1 + i + l) return unsafe.String(n.data(1+i+l+i2, "non-empty string"), l2) } func pkgPath(n abi.Name) string { if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 { return "" } i, l := n.ReadVarint(1) off := 1 + i + l if n.HasTag() { i2, l2 := n.ReadVarint(off)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/internal/abi/type.go
} // IsExported returns "is n exported?" func (n Name) IsExported() bool { return (*n.Bytes)&(1<<0) != 0 } // HasTag returns true iff there is tag data following this name func (n Name) HasTag() bool { return (*n.Bytes)&(1<<1) != 0 } // IsEmbedded returns true iff n is embedded (an anonymous field). func (n Name) IsEmbedded() bool { return (*n.Bytes)&(1<<3) != 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/reflect/type.go
abi.StructType } func pkgPath(n abi.Name) string { if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 { return "" } i, l := n.ReadVarint(1) off := 1 + i + l if n.HasTag() { i2, l2 := n.ReadVarint(off) off += i2 + l2 } var nameOff int32 // Note that this field may not be aligned in memory, // so we cannot use a direct int32 assignment here.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)