| 56 | } |
| 57 | |
| 58 | SIValue SIPath_Nodes(SIValue p) { |
| 59 | Path *path = (Path *) p.ptrval; |
| 60 | uint nodeCount = Path_NodeCount(path); |
| 61 | SIValue array = SIArray_New(nodeCount); |
| 62 | for(uint i = 0; i < nodeCount; i++) { |
| 63 | SIArray_Append(&array, SI_Node(Path_GetNode(path, i))); |
| 64 | } |
| 65 | return array; |
| 66 | } |
| 67 | |
| 68 | SIValue SIPath_GetNode(SIValue p, size_t i) { |
| 69 | ASSERT(i < SIPath_NodeCount(p)); |
no test coverage detected