MCPcopy
hub / github.com/streamlit/streamlit / accept

Method accept

frontend/lib/src/render-tree/AppNode.interface.ts:98–98  ·  view source on GitHub ↗

* Accept a visitor. * @param visitor - The visitor to accept. * @returns The result of the visitor's visit{AppNodeType} method. * @example * const visitor = new DebugVisitor() * const result = blockNode.accept(visitor) * console.log(result)

(visitor: AppNodeVisitor<T>)

Source from the content-addressed store, hash-verified

96 * console.log(result)
97 */
98 accept<T>(visitor: AppNodeVisitor<T>): T
99
100 /**
101 * Replace a transient node with the given node.

Callers 15

BlockNode.test.tsFile · 0.65
clearStaleNodesMethod · 0.65
clearTransientNodesMethod · 0.65
getActiveIdsMethod · 0.65
debugMethod · 0.65
visitBlockNodeMethod · 0.65
visitTransientNodeMethod · 0.65

Implementers 3

TransientNodefrontend/lib/src/render-tree/Transient
ElementNodefrontend/lib/src/render-tree/ElementNo
BlockNodefrontend/lib/src/render-tree/BlockNode

Calls

no outgoing calls

Tested by 1

websocket_endpointFunction · 0.52