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

Method Accept

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

Accept accepts Visitor to visit itself. The returned node should replace original node. ok returns false to stop visiting. Implementation of this method should first call visitor.Enter, assign the returned node to its method receiver, if skipChildren returns true, children should be skipped. Otherw

(v Visitor)

Source from the content-addressed store, hash-verified

37 // children should be skipped. Otherwise, call its children in particular order that
38 // later elements depends on former elements. Finally, return visitor.Leave.
39 Accept(v Visitor) (node Node, ok bool)
40 // Text returns the utf8 encoding text of the element.
41 Text() string
42 // OriginalText returns the original text of the element.

Callers 15

optimizeFunction · 0.65
buildAggregationMethod · 0.65
buildSortWithCheckMethod · 0.65
resolveWindowFunctionMethod · 0.65
collectFromTableRefsMethod · 0.65
collectFromWhereMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestConnectThrough636Function · 0.52
TestConnectWithTLS11Function · 0.52
TestLDAPStartTLSTimeoutFunction · 0.52
TestSubqueryFunction · 0.52
TestVisitFrameBoundFunction · 0.52
CleanNodeTextFunction · 0.52
cleanPartitionFunction · 0.52
TestGBKEncodingFunction · 0.52
TestDMLVisitorCoverFunction · 0.52
TestMiscVisitorCoverFunction · 0.52