Home
last modified time | relevance | path

Searched refs:dstFieldValue (Results 1 – 2 of 2) sorted by relevance

/build/blueprint/proptools/
Dextend.go309 dstFieldValue := dstValue.FieldByIndex(dstField.Index)
310 origDstFieldValue := dstFieldValue
313 if dstFieldValue.Kind() == reflect.Interface {
314 if dstFieldValue.IsNil() {
318 dstFieldValue = dstFieldValue.Elem()
320 if dstFieldValue.Kind() != reflect.Ptr {
326 if isStructPtr(dstFieldValue.Type()) {
327 if dstFieldValue.IsNil() {
328 dstFieldValue = reflect.New(dstFieldValue.Type().Elem())
329 origDstFieldValue.Set(dstFieldValue)
[all …]
Dclone.go61 dstFieldValue := dstValue.Field(i)
63 origDstFieldValue := dstFieldValue
67 dstFieldValue.Set(srcFieldValue)
69 copyProperties(dstFieldValue, srcFieldValue)
72 if srcFieldValue != dstFieldValue {
76 dstFieldValue.Set(newSlice)
79 dstFieldValue.Set(srcFieldValue)
83 dstFieldValue.Set(srcFieldValue)
94 if dstFieldValue.IsNil() || dstFieldValue.Elem().Type() != srcFieldValue.Type() {
98 dstFieldValue.Set(newValue)
[all …]