This commit is contained in:
Михаил Капелько
2023-12-28 14:38:59 +03:00
parent 5d5aa3d989
commit 836adabe08
2 changed files with 6 additions and 8 deletions

View File

@@ -14,6 +14,10 @@ def pipeSource(name, entity):
# Прямое обращение к VM.
if src.startswith("vm."):
src = "core." + src
# Обращение к константе шины.
elif src.startswith("K."):
key = src
src = "Bus.events.compactMap { Bus.convertKeyValue(" + key + ".rawValue, $0) }.map { (k: String, v: String) in v }.eraseToAnyPublisher()"
# Значение по умолчанию.
elif src == default:
return default + "." + name