Searched refs:field (Results 1 – 14 of 14) sorted by relevance
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 …]
36 for i, field := range typeFields(typ) {37 if field.PkgPath != "" {38 panic(fmt.Errorf("can't copy a private field %q", field.Name))54 newSlice := reflect.MakeSlice(field.Type, srcFieldValue.Len(),72 field.Name))76 field.Name))118 field.Name, srcFieldValue.Kind()))122 field.Name, srcFieldValue.Kind()))130 for i, field := range typeFields(typ) {131 if field.PkgPath != "" {[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)
289 for _, field := range dstFields {290 if field.Name == srcField.Name {291 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.)`
829 for _, field := range fields {830 if !proptools.HasTag(field, "android", "arch_variant") {842 if field.Tag == `android:"arch_variant"` {843 field.Tag = ""847 switch field.Type.Kind() {850 field.Type, subFiltered = filterArchStruct(field.Type)852 if field.Type == nil {856 if field.Type.Elem().Kind() == reflect.Struct {857 nestedType, subFiltered := filterArchStruct(field.Type.Elem())862 field.Type = reflect.PtrTo(nestedType)[all …]
87 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
397 field := productVariablePropertyValue.Type().Field(i).Name398 property := prefix + "." + proptools.PropertyNameForField(field)
129 field := structType.Field(i)135 if field.Name == "BlueprintEmbed" {136 field.Name = ""137 field.Anonymous = true140 if field.PkgPath != "" {145 propertyName := namePrefix + proptools.PropertyNameForField(field.Name)164 elemType := field.Type.Elem()166 if !proptools.HasTag(field, "blueprint", "mutated") {183 if fieldValue.IsNil() && (propertyIsSet || field.Anonymous) {198 if !proptools.HasTag(field, "blueprint", "mutated") {[all …]
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 …]
171 field := typ.Field(i)172 if field.PkgPath != "" {183 walk(fieldValue, prefix+proptools.PropertyNameForField(field.Name)+".")192 "refers to a non-pointer", field.Name))197 nestPoint := prefix + proptools.PropertyNameForField(field.Name)204 field.Name, fieldValue.Kind()))
38 int field; field in A.Inner
47 // Description field from the edge.49 // Command field from the edge.
22 the "extra" field in the zip Local File Header sections. Existing data