(ref: Reference)
| 45 | |
| 46 | /** Convert a Reference to the canonical lookup key used in the variables record. */ |
| 47 | export function refToLookupKey(ref: Reference): string { |
| 48 | switch (ref.srcId) { |
| 49 | case "declared": |
| 50 | return declaredVarKey(ref.varId); |
| 51 | case "fnarg": |
| 52 | return fnargKey(ref.varId); |
| 53 | default: |
| 54 | return nodeOutputVarKey(ref.srcId, ref.varId); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // ============================================================================ |
| 59 | // Variable UID Helpers for dynamic variable definitions (e.g. Agent output definitions) |
no test coverage detected