(node: Node)
| 362 | * Returns null if the node cannot be part of a grouped series of nodes. |
| 363 | */ |
| 364 | export function getSeriesName(node: Node) { |
| 365 | if (!node) { |
| 366 | return null; |
| 367 | } |
| 368 | if (node.type === NodeType.SERIES) { |
| 369 | return node.name; |
| 370 | } |
| 371 | if (node.type === NodeType.OP) { |
| 372 | let op = <OpNode>node; |
| 373 | return op.owningSeries; |
| 374 | } |
| 375 | return null; |
| 376 | } |
| 377 | /** |
| 378 | * Returns the SeriesNode that represents the series that the provided node |
| 379 | * is contained in (or itself if the provided node is itself a SeriesNode). |
no outgoing calls
no test coverage detected
searching dependent graphs…