(value: any)
| 225 | } |
| 226 | |
| 227 | export const getSource = (value: any): string => { |
| 228 | if (value && value.__source) { |
| 229 | return value.__source |
| 230 | } |
| 231 | let source = valueToSource(value) |
| 232 | if (source === 'undefined') { |
| 233 | source = '' |
| 234 | } |
| 235 | if (value) { |
| 236 | try { |
| 237 | value.__source = source |
| 238 | } catch (ex) { |
| 239 | console.error(ex) |
| 240 | } |
| 241 | } |
| 242 | return source |
| 243 | } |
nothing calls this directly
no test coverage detected