* @param sourceIndex By default 0, means "main source". * In most cases there is only one source.
(sourceIndex?: number)
| 354 | * In most cases there is only one source. |
| 355 | */ |
| 356 | getSource(sourceIndex?: number): Source { |
| 357 | sourceIndex = sourceIndex || 0; |
| 358 | const source = this._sourceList[sourceIndex]; |
| 359 | if (!source) { |
| 360 | // Series may share source instance with dataset. |
| 361 | const upSourceMgrList = this._getUpstreamSourceManagers(); |
| 362 | return upSourceMgrList[0] |
| 363 | && upSourceMgrList[0].getSource(sourceIndex); |
| 364 | } |
| 365 | return source; |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * |
nothing calls this directly
no test coverage detected