Lines Matching refs:parser

41 	property *parser.Property
73 func UnpackProperties(properties []*parser.Property, objects ...interface{}) (map[string]*parser.Pr…
94 result := make(map[string]*parser.Property)
146 func (ctx *unpackContext) buildPropertyMap(prefix string, properties []*parser.Property) bool {
162 case *parser.Map:
164 case *parser.List:
171 …if t := propValue.Values[0].Type(); t == parser.StringType || t == parser.Int64Type || t == parser
175 itemProperties := make([]*parser.Property, len(propValue.Values))
177 itemProperties[i] = &parser.Property{
316 if property.Value.Eval().Type() != parser.MapType {
346 func (ctx *unpackContext) unpackToConfigurable(propertyName string, property *parser.Property, conf…
348 case *parser.String:
368 case *parser.Bool:
388 case *parser.List:
402 itemProperty := &parser.Property{NamePos: property.NamePos, ColonPos: property.ColonPos}
428 case *parser.Operator:
431 case *parser.Variable:
434 case *parser.Select:
452 p := &parser.Property{
461 case *parser.String:
468 case *parser.Bool:
478 if _, ok := c.Value.(parser.UnsetProperty); ok {
515 p := &parser.Property{
539 func selectOnNonConfigurablePropertyError(property *parser.Property) error {
540 if _, ok := property.Value.Eval().(*parser.Select); !ok {
554 sliceName string, property *parser.Property, sliceType reflect.Type) (reflect.Value, bool) {
572 sliceName string, property *parser.Property, sliceType reflect.Type) (reflect.Value, bool) {
573 propValueAsList, ok := property.Value.Eval().(*parser.List)
593 var getItemFunc func(*parser.Property, reflect.Type) (reflect.Value, bool)
595 case parser.BoolType, parser.StringType, parser.Int64Type:
596 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
604 case parser.ListType:
605 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
608 case parser.MapType:
609 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
614 case parser.NotEvaluatedType:
615 getItemFunc = func(property *parser.Property, t reflect.Type) (reflect.Value, bool) {
622 itemProperty := &parser.Property{NamePos: property.NamePos, ColonPos: property.ColonPos}
648 func propertyToValue(typ reflect.Type, property *parser.Property) (reflect.Value, error) {
660 b, ok := property.Value.Eval().(*parser.Bool)
675 b, ok := property.Value.Eval().(*parser.Int64)
686 s, ok := property.Value.Eval().(*parser.String)