platform_build_blueprint/proptools
Cole Faust 1e62c68bfe
Separate blueprint parsing and evaluating
Before this cl, blueprint expressions were evaluated as they were
parsed. We want to add a feature to select statements where we can
bind the value of soome value from soong into a blueprint variable,
that then can be used like a regular variable in the .bp file. This
means that select statements need to hold whole unevalated expression
trees, and have the ability to evaluate them later on when the value
of the bound variable is known.

This cl doesn't implement the new select syntax, but it does split
blueprint's parsing and evaluating into two separate stages. We also
store expressions in selects and evaluate them when the select is
resolved.

I didn't do extensive performance evaluation, but a simple comparison
of the time of `touch Android.bp && m nothing` before/after this cl
showed a 1 second speedup. (That was probably just noise)

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I12f373719991afeb4aec76517153f32229d97ff2
2024-10-24 19:18:21 +02:00
..
clone.go Refactor selects 2024-04-29 13:23:30 -07:00
clone_test.go Fix TestCloneProperties for go 1.21 2023-11-08 22:07:58 -08:00
configurable.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
escape.go Use maps and slices packages 2024-04-01 15:54:22 -07:00
escape_test.go Use maps and slices packages 2024-04-01 15:54:22 -07:00
extend.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
extend_test.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
filter.go Don't recurse into configurable properties in filterPropertyStructFields 2024-03-26 16:46:48 -07:00
filter_test.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
hash_provider.go Use FNV instead of maphash as the hasher for soong. 2024-05-29 22:03:29 +00:00
hash_provider_test.go Use FNV instead of maphash as the hasher for soong. 2024-05-29 22:03:29 +00:00
proptools.go Support generating docs for Configurable properties 2024-05-06 15:14:17 -07:00
proptools_test.go Select statements 2024-03-06 15:00:39 -08:00
tag.go Select statements 2024-03-06 15:00:39 -08:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Fix bugs when appending selects 2024-04-25 15:38:56 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
unpack_test.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
utils.go Need to catch the errors when closing and flushing. 2024-05-24 21:37:32 +00:00