Lines Matching refs:Value

139 		switch propValue := property.Value.Eval().(type) {
159 Value: expr,
183 func (ctx *unpackContext) unpackToStruct(namePrefix string, structValue reflect.Value) {
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))
321 var getItemFunc func(*parser.Property, reflect.Type) (reflect.Value, bool)
324 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
333 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
337 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
343 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
356 itemProperty.Value = expr
376 func propertyToValue(typ reflect.Type, property *parser.Property) (reflect.Value, error) {
377 var value reflect.Value
388 b, ok := property.Value.Eval().(*parser.Bool)
391 property.Value.Pos(), property.Value.Type(), property.Name)
393 value = reflect.ValueOf(b.Value)
396 b, ok := property.Value.Eval().(*parser.Int64)
399 property.Value.Pos(), property.Value.Type(), property.Name)
401 value = reflect.ValueOf(b.Value)
404 s, ok := property.Value.Eval().(*parser.String)
407 property.Value.Pos(), property.Value.Type(), property.Name)
409 value = reflect.ValueOf(s.Value)
413 …fmt.Errorf("cannot assign %s value %s to %s property %s", property.Value.Type(), property.Value, k…