platform_build_blueprint/parser
Cole Faust 738bb54ded
Support variable bindings in selects
This allows us to recreate soong config value variables in selects.

This adds a new "any" pattern to selects, which is the same as "default"
except that it doesn't match undefined variables, and it's (currently)
the only pattern that can accept a binding.

The syntax looks like:
```
select(soong_config_variable("my_namespace", "my_variable"), {
    any @ my_binding: "foo" + my_binding,
    default: "other value",
})
```

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I4feb4073172d8797dee5472f43f9c248a76c3f1f
2024-10-24 19:18:21 +02:00
..
ast.go Support variable bindings in selects 2024-10-24 19:18:21 +02:00
modify.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
modify_test.go Add Patch and PatchList for making textual changes 2018-04-10 16:50:39 -07:00
parser.go Support variable bindings in selects 2024-10-24 19:18:21 +02:00
parser_test.go Support variable bindings in selects 2024-10-24 19:18:21 +02:00
printer.go Support variable bindings in selects 2024-10-24 19:18:21 +02:00
printer_test.go Support variable bindings in selects 2024-10-24 19:18:21 +02:00
sort.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
sort_test.go Fix numericStringLess and add tests 2021-03-08 17:59:55 -08:00