(ctx: PhaseContext)
| 3880 | cpp_path, |
| 3881 | [ |
| 3882 | ("SENSOR_TYPE_SWITCH", _emit_sensor_switch_block(sensor_rules, sensor_per_type)), |
| 3883 | ("SENSOR_TAG_TO_TYPE", _emit_sensor_tag_to_type_block(sensor_rules)), |
| 3884 | ], |
| 3885 | ctx.writes, |
| 3886 | diag_source="sensor_codegen", |
| 3887 | ) |
| 3888 | |
| 3889 | |
| 3890 | _KNOWN_LAYOUTS = {"single_uclass_per_file", "multi_uclass", "no_subclasses"} |
| 3891 | |
| 3892 | |
| 3893 | def _phase_categories(ctx: PhaseContext) -> None: |
| 3894 | rules, schema = ctx.rules, ctx.schema |
| 3895 | public_root, private_root = ctx.public_root, ctx.private_root |
| 3896 | mjspec = ctx.mjspec |
| 3897 | categories: Dict[str, Any] = rules.get("categories", {}) |
| 3898 | for cat, cat_rules in categories.items(): |
nothing calls this directly
no test coverage detected