Searched refs:field (Results 1 – 25 of 26) sorted by relevance
12
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 …]
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, field318 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {319 if HasTag(field, "keep", "true") {320 field.Tag = ""321 return true, field323 return false, field[all …]
24 func HasTag(field reflect.StructField, name, value string) bool {25 tag := field.Tag.Get(name)57 field := t.Field(i)58 ft := field.Type68 } else if HasTag(field, key, value) {69 indexes = append(indexes, field.Index)
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 …]
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
837 errors: []string{`<input>:3:13: mutated field mutated cannot be set in a Blueprint file`},855 errors: []string{`<input>:4:14: mutated field nested.mutated cannot be set in a Blueprint file`},
29 field := reflectType.Field(i)30 jsonTag := field.Tag.Get("json")38 reflectType.Name(), field.Name, field.Tag, jsonTag, ","+jsonTag)45 reflectType.Name(), field.Name, field.Tag, requestedName)64 …pe.PopulateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty…66 (Alternatively, to change the json name of the field, rename the field in source instead.)`
936 func filterArchStruct(field reflect.StructField, prefix string) (bool, reflect.StructField) {937 if proptools.HasTag(field, "android", "arch_variant") {944 androidTag := field.Tag.Get("android")947 if string(field.Tag) != `android:"`+strings.Join(values, ",")+`"` {948 panic(fmt.Errorf("unexpected tag format %q", field.Tag))954 panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name))956 field.Tag = reflect.StructTag(`android:"` + strings.Join(values, ",") + `"`)958 field.Tag = ``961 return true, field963 return false, field[all …]
575 field := productVariablePropertyValue.Type().Field(i).Name576 property := prefix + "." + proptools.PropertyNameForField(field)708 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {712 return true, field717 return true, field724 if fieldExistsByNameRecursive(reflect.TypeOf(p).Elem(), prefix, field.Name) {726 return true, field730 return false, field
105 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
187 var nestStruct func(field reflect.StructField, value reflect.Value, fieldName string)188 nestStruct = func(field reflect.StructField, value reflect.Value, fieldName string) {190 if field.Anonymous {195 ret = append(ret, nestedProperty{nestPoint: nestPoint, value: value, anonymous: field.Anonymous})204 field := typ.Field(i)205 if field.PkgPath != "" {209 if proptools.HasTag(field, "blueprint", "mutated") {219 nestStruct(field, fieldValue, field.Name)229 "refers to a non-pointer", field.Name))234 nestStruct(field, elem, field.Name)[all …]
214 String field = new String(buf, 0, pos); in parse() local215 final String cached = stringPool.get(field); in parse()217 stringPool.put(field, field); in parse()219 field = cached; in parse()221 fields.add(field); in parse()
208 for (Field field: getClass().getFields()) { in initLocked()209 if (Category.class.isAssignableFrom(field.getType())) { in initLocked()212 category = (Category)field.get(this); in initLocked()
133 func shouldSkipStructField(field reflect.StructField) bool {134 if field.PkgPath != "" {141 if proptools.HasTag(field, "blueprint", "mutated") {
159 field := structType.Field(i)160 if shouldSkipStructField(field) {164 properties = append(properties, extractPropertyDescriptions(field.Name, field.Type)...)
481 field := structType.Field(i)482 if shouldSkipStructField(field) {492 propertyName := proptools.PropertyNameForField(field.Name)
32 // A list of copy rules to run before the sandboxed command. The from field is relative to the33 // $PWD when sbox was run, the to field is relative to the top of the temporary sandbox directory.43 // A list of copy rules to run after the sandboxed command. The from field is relative to the44 // top of the temporary sandbox directory, the to field is relative to the $PWD when sbox was run.
38 int field; field in A.Inner
676 field := propStruct.Field(i)677 kind := field.Kind()679 if field.IsNil() {682 field = field.Elem()686 err := printfIntoProperty(field, configValue)691 for j := 0; j < field.Len(); j++ {692 err := printfIntoProperty(field.Index(j), configValue)
47 // Description field from the edge.49 // Command field from the edge.
1732 field := structType.Field(f)1733 if field.PkgPath != "" {1739 if proptools.HasTag(field, "sdk", "keep") {1746 if proptools.HasTag(field, "sdk", "ignored-on-host") {1760 name := namePrefix + field.Name1782 if field.Type.Kind() == reflect.Struct {1785 if field.Anonymous {1790 e.gatherFields(field.Type, fieldGetter, subNamePrefix)1796 reflect.Zero(field.Type),1797 proptools.HasTag(field, "android", "arch_variant"),
46 field := structType.Field(i)64 res.AddProperty(strings.ToLower(field.Name), fieldVal.Interface())
22 the "extra" field in the zip Local File Header sections. Existing data
47 // device name. i.e. ro.product.device; if the field has multiple values, it