Searched refs:field (Results 1 – 21 of 21) sorted by relevance
23 type FilterFieldPredicate func(field reflect.StructField, string string) (bool, reflect.StructField)26 field reflect.StructField member32 x.field.Name, x.field.Type.String(), strconv.Quote(string(x.field.Tag)),33 fieldToTypeNameSize(x.field, true)+2, x.size)46 appendAndShardIfNameFull := func(field reflect.StructField) {47 fieldTypeNameSize := fieldToTypeNameSize(field, true)53 if isStruct(field.Type) || isStructPtr(field.Type) {57 field.Type.String(), len(field.Type.String()), maxTypeNameSize-structNameSize))59 panic(cantFitPanic{field, maxTypeNameSize - structNameSize})67 filteredFields = append(filteredFields, field)[all …]
33 field string37 field: "NoTag",41 field: "EmptyTag",45 field: "OtherTag",49 field: "MatchingTag",53 field: "ExtraValues",57 field: "ExtraTags",62 t.Run(test.field, func(t *testing.T) {63 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field)64 if got := HasTag(field, "name", "value"); got != test.want {[all …]
224 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {225 if HasTag(field, "keep", "true") {226 field.Tag = ""227 return true, field229 return false, field274 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {275 if HasTag(field, "keep", "true") {276 field.Tag = ""277 return true, field279 return false, field[all …]
55 for i, field := range typeFields(typ) {56 if field.PkgPath != "" {57 panic(fmt.Errorf("can't copy a private field %q", field.Name))73 newSlice := reflect.MakeSlice(field.Type, srcFieldValue.Len(),91 field.Name, srcFieldValue.Type()))131 field.Name, srcFieldValue.Type()))135 field.Name, srcFieldValue.Type()))152 for i, field := range typeFields(typ) {153 if field.PkgPath != "" {173 field.Name, fieldValue.Type()))[all …]
24 func HasTag(field reflect.StructField, name, value string) bool {25 tag := field.Tag.Get(name)50 field := t.Field(i)51 ft := field.Type61 } else if HasTag(field, key, value) {62 indexes = append(indexes, field.Index)
188 field := structType.Field(i)194 if field.Name == "BlueprintEmbed" {195 field.Name = ""196 field.Anonymous = true199 if field.PkgPath != "" {204 propertyName := fieldPath(namePrefix, PropertyNameForField(field.Name))235 if fieldValue.IsNil() && (propertyIsSet || field.Anonymous) {250 if !HasTag(field, "blueprint", "mutated") {251 panic(fmt.Errorf(`int field %s must be tagged blueprint:"mutated"`, propertyName))258 if field.Anonymous && isStruct(fieldValue.Type()) {[all …]
296 for _, field := range dstFields {297 if field.Name == srcField.Name {298 dstField = field
28 field := reflectType.Field(i)29 jsonTag := field.Tag.Get("json")37 reflectType.Name(), field.Name, field.Tag, jsonTag, ","+jsonTag)44 reflectType.Name(), field.Name, field.Tag, requestedName)63 …pe.PopulateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty…65 (Alternatively, to change the json name of the field, rename the field in source instead.)`
1063 func filterArchStruct(field reflect.StructField, prefix string) (bool, reflect.StructField) {1064 if proptools.HasTag(field, "android", "arch_variant") {1071 androidTag := field.Tag.Get("android")1074 if string(field.Tag) != `android:"`+strings.Join(values, ",")+`"` {1075 panic(fmt.Errorf("unexpected tag format %q", field.Tag))1080 panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name))1083 field.Tag = ""1084 return true, field1086 return false, field1133 dst interface{}, src reflect.Value, field, srcPrefix string) reflect.Value { argument[all …]
465 field := productVariablePropertyValue.Type().Field(i).Name466 property := prefix + "." + proptools.PropertyNameForField(field)598 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {602 return true, field607 return true, field614 if fieldExistsByNameRecursive(reflect.TypeOf(p).Elem(), prefix, field.Name) {616 return true, field620 return false, field
86 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
212 <?cs each:field=fields ?>215 <?cs var:field.scope ?>216 <?cs var:field.static ?>217 <?cs var:field.final ?>218 <?cs call:type_link(field.type) ?></nobr></td>219 … <td class="jd-linkcol"><?cs call:cond_link(field.name, toroot, field.href, included) ?></td>221 <?cs call:short_descr(field) ?>222 <?cs call:show_annotations_list(field) ?>231 <?cs each:field=fields ?>233 <td class="jd-typecol"><?cs call:type_link(field.type) ?></td>[all …]
162 field := typ.Field(i)163 if field.PkgPath != "" {167 if proptools.HasTag(field, "blueprint", "mutated") {177 walk(fieldValue, prefix+proptools.PropertyNameForField(field.Name)+".")186 "refers to a non-pointer", field.Name))191 nestPoint := prefix + proptools.PropertyNameForField(field.Name)198 field.Name, fieldValue.Kind()))
544 field := propStruct.Field(i)545 kind := field.Kind()547 if field.IsNil() {550 field = field.Elem()554 err := printfIntoProperty(field, configValue)559 for j := 0; j < field.Len(); j++ {560 err := printfIntoProperty(field.Index(j), configValue)
38 int field; field in A.Inner
47 // Description field from the edge.49 // Command field from the edge.
1337 field := structType.Field(f)1338 if field.PkgPath != "" {1344 if proptools.HasTag(field, "sdk", "keep") {1351 if proptools.HasTag(field, "sdk", "ignored-on-host") {1365 name := field.Name1387 if field.Type.Kind() == reflect.Struct && field.Anonymous {1389 e.gatherFields(field.Type, fieldGetter)1395 reflect.Zero(field.Type),1396 proptools.HasTag(field, "android", "arch_variant"),
416 …h.AssertErrorMessageEquals("unexpected error", `field "S_Common" is not tagged as "arch_variant" b…
22 the "extra" field in the zip Local File Header sections. Existing data
687 for _, field := range relevantFields {688 listValue, ok := getLiteralListProperty(mod, field)696 return fmt.Errorf("Expecting string for %s.%s fields", mod.Type, field)704 removeProperty(mod, field)
1741 field := reflect.StructField{1745 fields = append(fields, field)1759 field := allScopePropertiesStruct.FieldByName(apiScope.fieldName)1760 scopeProperties[apiScope] = field.Addr().Interface().(*sdkLibraryScopeProperties)