MCPcopy
hub / github.com/pingcap/tidb / SetOriginTextPosition

Method SetOriginTextPosition

pkg/parser/ast/ast.go:48–48  ·  view source on GitHub ↗

SetOriginTextPosition set the start offset of this node in the origin text. Only be called when `parser.lexer.skipPositionRecording` equals to false.

(offset int)

Source from the content-addressed store, hash-verified

46 // SetOriginTextPosition set the start offset of this node in the origin text.
47 // Only be called when `parser.lexer.skipPositionRecording` equals to false.
48 SetOriginTextPosition(offset int)
49 // OriginTextPosition get the start offset of this node in the origin text.
50 OriginTextPosition() int
51}

Callers 5

yySetOffsetFunction · 0.65
cleanPartitionFunction · 0.65
EnterMethod · 0.65
EnterMethod · 0.65
EnterMethod · 0.65

Calls

no outgoing calls

Tested by 3

cleanPartitionFunction · 0.52
EnterMethod · 0.52
EnterMethod · 0.52