Files
build_soong/android
Colin Cross 3c0a83d19f Use generics for providers API
Using generics for the providers API allows a type to be associated
with a ProviderKey, resulting in a type-safe API without that doesn't
require runtime type assertions by every caller.

Unfortunately, Go does not allow generic types in methods, only in
functions [1].  This prevents a type-safe API on ModuleContext, and
requires moving the API to be functions that take a ModuleContext as
a parameter.

This CL creates the new API, but doesn't convert all of the callers.

[1] https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#no-parameterized-methods)

Bug: 316410648
Test: builds
Change-Id: I3e30d68b966b730efd968166a38a25cc144bd6de
2023-12-14 16:12:20 -08:00
..
2023-12-14 16:12:20 -08:00
2023-12-14 16:12:20 -08:00
2023-04-17 19:26:07 +00:00
2023-03-22 12:58:38 -07:00
2023-12-13 14:11:24 -08:00
2023-06-22 08:18:33 -07:00
2023-05-19 20:31:32 +00:00
2022-11-02 19:17:30 +00:00
2023-12-14 16:12:20 -08:00
2023-12-14 16:12:20 -08:00
2023-04-10 20:20:41 +00:00
2023-04-10 20:20:41 +00:00
2023-04-26 17:18:19 -07:00
2023-06-22 08:18:33 -07:00
2023-11-30 13:38:49 -08:00
2023-12-14 16:12:20 -08:00
2023-12-14 16:12:20 -08:00
2023-10-16 14:20:00 -07:00
2023-12-14 16:12:20 -08:00
2023-11-08 22:11:24 -08:00
2023-12-08 13:51:07 -08:00
2022-08-03 14:02:33 -07:00