MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / Clone

Method Clone

pkg/sql/tokenizer/position.go:146–152  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

144//
145// Returns a new Position with identical values.
146func (p Position) Clone() Position {
147 return Position{
148 Line: p.Line,
149 Index: p.Index,
150 Column: p.Column,
151 }
152}

Callers 4

readIdentifierMethod · 0.45
readQuotedIdentifierMethod · 0.45
ReadStringLiteralMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected