Home
last modified time | relevance | path

Searched refs:errs (Results 1 – 13 of 13) sorted by relevance

/build/blueprint/
Dunpack.go36 errs := buildPropertyMap("", propertyDefs, propertyMap)
37 if len(errs) > 0 {
38 return nil, errs
53 errs = append(errs, newErrs...)
55 if len(errs) >= maxErrors {
56 return nil, errs
70 errs = append(errs, err)
74 if len(errs) > 0 {
75 return nil, errs
82 propertyMap map[string]*packedProperty) (errs []error) {
[all …]
Dcontext.go472 errs []error) {
483 file, errs = parser.ParseAndEval(filename, r, scope)
484 if len(errs) > 0 {
485 for i, err := range errs {
491 errs[i] = err
497 return nil, nil, nil, errs
503 errs = append(errs, err)
508 errs = append(errs, err)
513 errs = append(errs, err)
523 errs = append(errs, newErrs...)
[all …]
Dmodule_ctx.go160 errs []error member
186 d.errs = append(d.errs, err)
226 return len(d.errs) > 0
248 m.errs = append(m.errs, &Error{
427 modules, errs := mctx.context.createVariations(mctx.module, mctx.name, variationNames)
428 if len(errs) > 0 {
429 mctx.errs = append(mctx.errs, errs...)
461 errs := mctx.context.addDependency(mctx.context.moduleInfo[module], dep)
462 if len(errs) > 0 {
463 mctx.errs = append(mctx.errs, errs...)
[all …]
Dunpack_test.go31 errs []error
365 file, errs := parser.Parse("", r, nil)
366 if len(errs) != 0 {
369 for _, err := range errs {
378 _, errs = unpackProperties(module.Properties, properties.Interface())
379 if len(errs) != 0 && len(testCase.errs) == 0 {
382 for _, err := range errs {
386 } else if !reflect.DeepEqual(errs, testCase.errs) {
389 t.Errorf(" expected: %+v", testCase.errs)
390 t.Errorf(" got: %+v", errs)
Dcontext_test.go86 _, _, _, errs := ctx.parse(".", "Blueprint", r, nil)
87 if len(errs) > 0 {
89 for _, err := range errs {
95 errs = ctx.ResolveDependencies(nil)
96 if len(errs) > 0 {
98 for _, err := range errs {
Dsingleton_ctx.go69 errs []error member
96 s.errs = append(s.errs, err)
112 return len(s.errs) > 0
/build/blueprint/bootstrap/
Dcommand.go100 deps, errs := ctx.ParseBlueprintsFiles(bootstrapConfig.topLevelBlueprintsFile)
101 if len(errs) > 0 {
102 fatalErrors(errs)
108 errs = ctx.ResolveDependencies(config)
109 if len(errs) > 0 {
110 fatalErrors(errs)
121 extraDeps, errs := ctx.PrepareBuildActions(config)
122 if len(errs) > 0 {
123 fatalErrors(errs)
179 func fatalErrors(errs []error) {
[all …]
/build/blueprint/bpmodify/
Dbpmodify.go73 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
74 if len(errs) > 0 {
75 for _, err := range errs {
78 return fmt.Errorf("%d parsing errors", len(errs))
81 modified, errs := findModules(file)
82 if len(errs) > 0 {
83 for _, err := range errs {
121 func findModules(file *parser.File) (modified bool, errs []error) {
129 errs = append(errs, newErrs...)
137 return modified, errs
[all …]
/build/blueprint/bpfmt/
Dbpfmt.go61 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
62 if len(errs) > 0 {
63 for _, err := range errs {
66 return fmt.Errorf("%d parsing errors", len(errs))
/build/blueprint/parser/
Dprinter_test.go264 file, errs := Parse("", r, NewScope(nil))
265 if len(errs) != 0 {
268 for _, err := range errs {
Dparser_test.go480 file, errs := ParseAndEval("", r, NewScope(nil))
481 if len(errs) != 0 {
484 for _, err := range errs {
Dparser.go46 func parse(p *parser) (file *File, errs []error) {
50 errs = p.errors
59 errs = p.errors
66 }, errs
70 func ParseAndEval(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
78 func Parse(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
/build/soong/androidmk/cmd/androidmk/
Dandroidmk.go81 things, errs := p.Parse()
82 if len(errs) > 0 {
83 for _, err := range errs {