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

Method SetText

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

SetText sets original text to the Node.

(enc charset.Encoding, text string)

Source from the content-addressed store, hash-verified

43 OriginalText() string
44 // SetText sets original text to the Node.
45 SetText(enc charset.Encoding, text string)
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)

Callers 13

unfoldWildStarFunction · 0.65
EraseLastSemicolonFunction · 0.65
eraseLastSemicolonFunction · 0.65
cleanPartitionFunction · 0.65
EnterMethod · 0.65
yyParseFunction · 0.65
EnterMethod · 0.65
doOneJobFunction · 0.65
getLazyStmtTextMethod · 0.65
updatePrevStmtMethod · 0.65

Calls

no outgoing calls

Tested by 3

cleanPartitionFunction · 0.52
EnterMethod · 0.52
EnterMethod · 0.52