NewBaseGenerator creates a base generator with initialized state.
()
| 36 | |
| 37 | // NewBaseGenerator creates a base generator with initialized state. |
| 38 | func NewBaseGenerator() *BaseGenerator { |
| 39 | return &BaseGenerator{ |
| 40 | Counter: 1, // First variable has no number, second is "1", etc. |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // TempVar generates unique temporary variable names following Go naming convention. |
| 45 | // Returns "base" for first, "base1" for second, "base2" for third, etc. |
no outgoing calls