| 119 | //----------------------------------------------------------------------------- |
| 120 | |
| 121 | class ArrayInitCodeGenerator final : public CodeGenerator |
| 122 | { |
| 123 | const uint64_t mIndex; |
| 124 | |
| 125 | public: |
| 126 | ArrayInitCodeGenerator(OutputFormatHelper& _outputFormatHelper, const uint64_t index) |
| 127 | : CodeGenerator{_outputFormatHelper} |
| 128 | , mIndex{index} |
| 129 | { |
| 130 | } |
| 131 | |
| 132 | using CodeGenerator::InsertArg; |
| 133 | void InsertArg(const ArrayInitIndexExpr*) override { mOutputFormatHelper.Append(mIndex); } |
| 134 | }; |
| 135 | //----------------------------------------------------------------------------- |
| 136 | |
| 137 | /// Handling specialties for decomposition declarations. |
nothing calls this directly
no outgoing calls
no test coverage detected