Home | History | Annotate | Download | only in proptools

Lines Matching refs:property

22 // AppendProperties appends the values of properties in the property struct src to the property
29 // An error returned by AppendProperties that applies to a specific property will be an
30 // *ExtendPropertyError, and can have the property name and error extracted from it.
35 // pointers to structs. Appending the zero value of a property will always be a no-op.
40 // PrependProperties prepends the values of properties in the property struct src to the property
47 // An error returned by PrependProperties that applies to a specific property will be an
48 // *ExtendPropertyError, and can have the property name and error extracted from it.
53 // pointers to structs. Prepending the zero value of a property will always be a no-op.
58 // AppendMatchingProperties appends the values of properties in the property struct src to the
59 // property structs in dst. dst and src do not have to be the same type, but every property in src
60 // must be found in at least one property in dst. dst must be a slice of pointers to structs, and
67 // An error returned by AppendMatchingProperties that applies to a specific property will be an
68 // *ExtendPropertyError, and can have the property name and error extracted from it.
73 // pointers to structs. Appending the zero value of a property will always be a no-op.
79 // PrependMatchingProperties prepends the values of properties in the property struct src to the
80 // property structs in dst. dst and src do not have to be the same type, but every property in src
81 // must be found in at least one property in dst. dst must be a slice of pointers to structs, and
88 // An error returned by PrependProperties that applies to a specific property will be an
89 // *ExtendPropertyError, and can have the property name and error extracted from it.
94 // pointers to structs. Prepending the zero value of a property will always be a no-op.
100 // ExtendProperties appends or prepends the values of properties in the property struct src to the
101 // property struct dst. dst and src must be the same type, and both must be pointers to structs.
107 // The order function is called on each non-filtered property to determine if it should be appended
110 // An error returned by ExtendProperties that applies to a specific property will be an
111 // *ExtendPropertyError, and can have the property name and error extracted from it.
116 // pointers to structs. Appending or prepending the zero value of a property will always be a
123 // ExtendMatchingProperties appends or prepends the values of properties in the property struct src
124 // to the property structs in dst. dst and src do not have to be the same type, but every property
125 // in src must be found in at least one property in dst. dst must be a slice of pointers to
132 // The order function is called on each non-filtered property to determine if it should be appended
135 // An error returned by ExtendMatchingProperties that applies to a specific property will be an
136 // *ExtendPropertyError, and can have the property name and error extracted from it.
141 // pointers to structs. Appending or prepending the zero value of a property will always be a
155 type ExtendPropertyFilterFunc func(property string,
159 type ExtendPropertyOrderFunc func(property string,
163 func orderAppend(property string,
169 func orderPrepend(property string,
177 Property string
181 return fmt.Sprintf("can't extend property %q: %s", e.Property, e.Err)
184 func extendPropertyErrorf(property string, format string, a ...interface{}) *ExtendPropertyError {
187 Property: property,
367 Property: propertyName,
383 Property: propertyName,
399 return extendPropertyErrorf(propertyName, "failed to find property to extend")