chore: improve generator dependencies (#26360)

This commit is contained in:
andig 2026-01-02 12:05:03 +01:00 • committed by GitHub
parent 468561611f
commit 1e0539ec7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 264 additions and 7172 deletions

View file

@ -58,6 +58,9 @@ var a struct {
api.BatteryController
api.BatterySocLimiter
api.BatteryPowerLimiter
api.CurrentController
api.CurrentGetter
}
func typ(i any) string {
@ -65,10 +68,11 @@ func typ(i any) string {
}
var dependents = map[string][]string{
typ(&a.Meter): {typ(&a.MeterEnergy), typ(&a.PhaseCurrents), typ(&a.PhaseVoltages), typ(&a.MaxACPowerGetter)},
typ(&a.PhaseCurrents): {typ(&a.PhasePowers)}, // phase powers are only used to determine currents sign
typ(&a.PhaseSwitcher): {typ(&a.PhaseGetter)},
typ(&a.Battery): {typ(&a.BatteryCapacity), typ(&a.SocLimiter), typ(&a.BatteryController), typ(&a.BatterySocLimiter), typ(&a.BatteryPowerLimiter)},
typ(&a.Meter): {typ(&a.MeterEnergy), typ(&a.PhaseCurrents), typ(&a.PhaseVoltages), typ(&a.MaxACPowerGetter)},
typ(&a.PhaseCurrents): {typ(&a.PhasePowers)}, // phase powers are only used to determine currents sign
typ(&a.PhaseSwitcher): {typ(&a.PhaseGetter)},
typ(&a.Battery): {typ(&a.BatteryCapacity), typ(&a.SocLimiter), typ(&a.BatteryController), typ(&a.BatterySocLimiter), typ(&a.BatteryPowerLimiter)},
typ(&a.CurrentController): {typ(&a.CurrentGetter)},
}
// hasIntersection returns if the slices intersect

File diff suppressed because it is too large Load diff