Lines Matching refs:unpackContext
47 type unpackContext struct { struct
70 var unpackContext unpackContext
71 unpackContext.propertyMap = make(map[string]*packedProperty)
72 if !unpackContext.buildPropertyMap("", properties) {
73 return nil, unpackContext.errs
82 unpackContext.unpackToStruct("", valueObject.Elem())
83 if len(unpackContext.errs) >= maxUnpackErrors {
84 return nil, unpackContext.errs
92 for name, v := range unpackContext.propertyMap {
99 if len(unusedNames) == 0 && len(unpackContext.errs) == 0 {
102 return nil, unpackContext.reportUnusedNames(unusedNames)
105 func (ctx *unpackContext) reportUnusedNames(unusedNames []string) []error { argument
124 func (ctx *unpackContext) buildPropertyMap(prefix string, properties []*parser.Property) bool { argument
178 func (ctx *unpackContext) addError(e error) bool { argument
183 func (ctx *unpackContext) unpackToStruct(namePrefix string, structValue reflect.Value) { argument
314 func (ctx *unpackContext) unpackToSlice( argument