Lines Matching refs:parser
34 func expandScalarTypeExpression(value parser.Expression) (scalar interface{}, isScalar bool) {
35 if s, ok := value.(*parser.Bool); ok {
37 } else if s, ok := value.(*parser.String); ok {
39 } else if s, ok := value.(*parser.Int64); ok {
45 func populatePropertyMap(propMap map[string]interface{}, prefix string, m *parser.Map) {
54 } else if list, ok := value.(*parser.List); ok {
62 } else if mm, ok := value.(*parser.Map); ok {
70 func flattenModule(module *parser.Module) (flattened FlatModule) {
73 if value, ok := prop.Value.Eval().(*parser.String); ok {
95 ast, errs := parser.ParseAndEval(filename, in, &parser.Scope{})
105 if module, ok := def.(*parser.Module); ok {