func (tree *ExpressionTree) UnmarshalYAML(unmarshalFn func(interface{}) error) error {
	var exprTree []interface{}
	if err := unmarshalFn(&exprTree); err != nil {
		if _, isTypeErr := err.(*yaml.TypeError); isTypeErr {
			return errors.New(`malformed "assumes" block; expected an expression list`)
		}
		return errors.Annotate(err, "decoding assumes block")
	}

	expr, err := parseAssumesExpressionTree(exprTree)
	if err != nil {
		return errors.Trace(err)
	}
	tree.Expression = expr
	return nil
}
// UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml.Unmarshaler interface.
// UnmarshalYAML implements the yaml . Unmarshaler interface .
func (tree *ExpressionTree) UnmarshalYAML(unmarshalFn func(interface{}) error) error {
	var exprTree []interface{}
	if err := unmarshalFn(&exprTree); err != nil {
		if _, isTypeErr := err.(*yaml.TypeError); isTypeErr {
			return errors.New(`malformed "assumes" block; expected an expression list`)
		}
		return errors.Annotate(err, "decoding assumes block")
	}
	expr, err := parseAssumesExpressionTree(exprTree)
	if err != nil {
		return errors.Trace(err)
	}
	tree.Expression = expr
	return nil
}
func ( tree * ExpressionTree ) UnmarshalYAML ( unmarshalFn func ( interface { } ) error ) error { var exprTree [ ] interface { } if err := unmarshalFn ( & exprTree ) ; err != nil { if _ , isTypeErr := err . ( * yaml . TypeError ) ; isTypeErr { return errors . New ( `malformed "assumes" block; expected an expression list` ) } return errors . Annotate ( err , " " ) } expr , err := parseAssumesExpressionTree ( exprTree ) if err != nil { return errors . Trace ( err ) } tree . Expression = expr return nil }
UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml . Unmarshaler interface .