proud-dentist-22844
07/02/2024, 4:18 AMfast-nail-55400
07/02/2024, 4:36 AMcareful-address-89803
07/02/2024, 4:36 AMGet(InferredDependencies, InferDependenciesRequest) might go InferDependenciesRequest--[UnionRule]-->InferFortranDependencies--[infer_fortran_dependencies]-->InferredDependenciesfast-nail-55400
07/02/2024, 4:36 AMfast-nail-55400
07/02/2024, 4:39 AMUnionRule rules exist to handle situations where you might need multiple dispatch type operations. However, it does not involve subclassing. Implementations of InferDependenciesRequest for example have an associated FieldSet which is used to find the applicable targets for each implementation. https://github.com/pantsbuild/pants/blob/992b233deb0dd95519051f04faf223c9fdc7b890/src/python/pants/engine/target.py#L2788fast-nail-55400
07/02/2024, 4:40 AMUnionMembership type and ask the engine to apply the relevant rules).proud-dentist-22844
07/02/2024, 5:09 AMhappy-kitchen-89482
07/02/2024, 6:07 AMproud-dentist-22844
07/27/2024, 3:50 AM