Clone creates a copy of this Position. The returned Position is independent and can be modified without affecting the original. This is useful when you need to save a position (e.g., for backtracking during compound keyword parsing) and then potentially restore it. Returns a new Position with iden
()
| 144 | // |
| 145 | // Returns a new Position with identical values. |
| 146 | func (p Position) Clone() Position { |
| 147 | return Position{ |
| 148 | Line: p.Line, |
| 149 | Index: p.Index, |
| 150 | Column: p.Column, |
| 151 | } |
| 152 | } |
no outgoing calls
no test coverage detected