Lines Matching refs:property

41 	property *parser.Property  member
94 result[name] = v.property
118 ctx.propertyMap[name].property.ColonPos})
126 for _, property := range properties {
127 name := fieldPath(prefix, property.Name)
130 &UnpackError{fmt.Errorf("property %q already defined", name), property.ColonPos})
132 &UnpackError{fmt.Errorf("<-- previous definition here"), first.property.ColonPos}) {
138 ctx.propertyMap[name] = &packedProperty{property, false}
139 switch propValue := property.Value.Eval().(type) {
156 Name: property.Name + "[" + strconv.Itoa(i) + "]",
157 NamePos: property.NamePos,
158 ColonPos: property.ColonPos,
269 property := packedProperty.property
275 property.ColonPos,
288 if unpackedValue, ok := ctx.unpackToSlice(propertyName, property, fieldValue.Type()); ok {
296 unpackedValue, err := propertyToValue(fieldValue.Type(), property)
307 sliceName string, property *parser.Property, sliceType reflect.Type) (reflect.Value, bool) {
308 propValueAsList, ok := property.Value.Eval().(*parser.List)
311 property.Value.Pos(), property.Value.Type(), property.Name))
324 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
325 value, err := propertyToValue(t, property)
333 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
334 return ctx.unpackToSlice(property.Name, property, t)
337 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
339 ctx.unpackToStruct(property.Name, itemValue)
343 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
350 itemProperty := &parser.Property{NamePos: property.NamePos, ColonPos: property.ColonPos}
376 func propertyToValue(typ reflect.Type, property *parser.Property) (reflect.Value, error) {
388 b, ok := property.Value.Eval().(*parser.Bool)
391 property.Value.Pos(), property.Value.Type(), property.Name)
396 b, ok := property.Value.Eval().(*parser.Int64)
399 property.Value.Pos(), property.Value.Type(), property.Name)
404 s, ok := property.Value.Eval().(*parser.String)
407 property.Value.Pos(), property.Value.Type(), property.Name)
413 …fmt.Errorf("cannot assign %s value %s to %s property %s", property.Value.Type(), property.Value, k…
414 property.NamePos}