Lines Matching refs:errs
35 file, errs := parser.ParseAndEval(from, r, scope)
37 if len(errs) > 0 {
38 return nil, errs
52 errs = append(errs, newErrs...)
62 if len(errs) > 0 {
63 return nil, errs
81 func processImportModuleDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
123 func processModuleTypeDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
127 _, errs = proptools.UnpackProperties(def.Properties, props)
128 if len(errs) > 0 {
129 return errs
133 errs = append(errs, fmt.Errorf("name property must be set"))
137 errs = append(errs, fmt.Errorf("config_namespace property must be set"))
141 errs = append(errs, fmt.Errorf("module_type property must be set"))
144 if len(errs) > 0 {
145 return errs
191 func processStringVariableDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
194 base, errs := processVariableDef(def, stringProps)
195 if len(errs) > 0 {
196 return errs
211 func processBoolVariableDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
212 base, errs := processVariableDef(def)
213 if len(errs) > 0 {
214 return errs
225 extraProps ...interface{}) (cond baseVariable, errs []error) {
231 _, errs = proptools.UnpackProperties(def.Properties, allProps...)
232 if len(errs) > 0 {
233 return baseVariable{}, errs