(thing: any, property?: string)
| 85 | } |
| 86 | |
| 87 | export function getDebugName(thing: any, property?: string): string { |
| 88 | let named |
| 89 | if (property !== undefined) { |
| 90 | named = getAtom(thing, property) |
| 91 | } else if (isAction(thing)) { |
| 92 | return thing.name |
| 93 | } else if (isObservableObject(thing) || isObservableMap(thing) || isObservableSet(thing)) { |
| 94 | named = getAdministration(thing) |
| 95 | } else { |
| 96 | // valid for arrays as well |
| 97 | named = getAtom(thing) |
| 98 | } |
| 99 | return named.name_ |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Helper function for initializing observable structures, it applies: |
no test coverage detected
searching dependent graphs…