blob: 8b64269abef349ecdff6de1b3803a7f834d6355c [file] [edit]
---
title: 'propagation_ctx'
---
A context object that is passed to the `propagation_predicate`, `attr_aspects` and `toolchains_aspects` functions of aspects. It provides access to the information needed to determine whether the aspect should be propagated to the target and what attributes or toolchain types it should be propagated to next.
## Members
* [attr](#attr)
* [rule](#rule)
## attr
```
struct propagation_ctx.attr
```
A struct to access only the public parameters of the aspect. The keys and values of the struct are the parameters names and values.
## rule
```
StarlarkAspectPropagationRuleApi propagation_ctx.rule
```
Allows access to the details of the rule.