Add a given index into the function structure.
(stuff, index, sort, operand, aggregation)
| 760 | |
| 761 | # Add the input or output |
| 762 | def put_operand(stuff, index, sort, operand, aggregation): |
| 763 | """Add a given index into the function structure.""" |
| 764 | if sort is None: |
| 765 | stuff[index] = _LiteSingleOperand(operand) |
| 766 | else: |
| 767 | if index not in stuff: |
| 768 | stuff[index] = _LiteAggregateOperand(aggregation) |
| 769 | stuff[index].add(sort, operand) |
| 770 | |
| 771 | if OpHint.FUNCTION_INPUT_INDEX_ATTR in attr: |
| 772 | put_operand(call_def.inputs, attr[OpHint.FUNCTION_INPUT_INDEX_ATTR].i, |
no test coverage detected