Home | History | Annotate | Download | only in blueprint

Lines Matching refs:property

28 	property *parser.Property
32 func unpackProperties(propertyDefs []*parser.Property,
33 propertiesStructs ...interface{}) (map[string]*parser.Property, []error) {
62 result := make(map[string]*parser.Property)
64 result[name] = packedProperty.property
67 Err: fmt.Errorf("unrecognized property %q", name),
68 Pos: packedProperty.property.ColonPos,
81 func buildPropertyMap(namePrefix string, propertyDefs []*parser.Property,
87 if first.property == propertyDef {
88 // We've already added this property.
92 Err: fmt.Errorf("property %q already defined", name),
97 Pos: first.property.ColonPos,
106 property: propertyDef,
111 // property map here. Instead we add them when we encounter a struct
113 // encounter such a struct then the "unrecognized property" error will
114 // be reported only once for the map property and not for each of its
151 // Get the property value if it was specified.
157 // of whether or not the property was specified in the parsed string.
211 // This property wasn't specified.
221 Pos: packedProperty.property.ColonPos,
233 Pos: packedProperty.property.ColonPos,
262 packedProperty.property, propertyMap, localFilterKey, localFilterValue)
274 propertyValue, err := propertyToValue(fieldValue.Type(), packedProperty.property)
288 func propertyToValue(typ reflect.Type, property *parser.Property) (reflect.Value, error) {
299 b, ok := property.Value.Eval().(*parser.Bool)
301 return value, fmt.Errorf("%s: can't assign %s value to bool property %q",
302 property.Value.Pos(), property.Value.Type(), property.Name)
307 b, ok := property.Value.Eval().(*parser.Int64)
309 return value, fmt.Errorf("%s: can't assign %s value to int64 property %q",
310 property.Value.Pos(), property.Value.Type(), property.Name)
315 s, ok := property.Value.Eval().(*parser.String)
317 return value, fmt.Errorf("%s: can't assign %s value to string property %q",
318 property.Value.Pos(), property.Value.Type(), property.Name)
323 l, ok := property.Value.Eval().(*parser.List)
325 return value, fmt.Errorf("%s: can't assign %s value to list property %q",
326 property.Value.Pos(), property.Value.Type(), property.Name)
355 property *parser.Property, propertyMap map[string]*packedProperty,
358 m, ok := property.Value.Eval().(*parser.Map)
361 fmt.Errorf("%s: can't assign %s value to map property %q",
362 property.Value.Pos(), property.Value.Type(), property.Name),