Click or drag to resize

ITreeAdaptorBecomeRoot Method (IToken, Object)

Create a node for newRoot make it the root of oldRoot. If oldRoot is a nil root, just copy or move the children to newRoot. If not a nil root, make oldRoot a child of newRoot.

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
Object BecomeRoot(
	IToken newRoot,
	Object oldRoot
)

Parameters

newRoot
Type: Stimulsoft.Data.Expressions.Antlr.RuntimeIToken

[Missing <param name="newRoot"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor.BecomeRoot(Stimulsoft.Data.Expressions.Antlr.Runtime.IToken,System.Object)"]

oldRoot
Type: SystemObject

[Missing <param name="oldRoot"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor.BecomeRoot(Stimulsoft.Data.Expressions.Antlr.Runtime.IToken,System.Object)"]

Return Value

Type: Object
Return node created for newRoot.
Remarks
Be advised: when debugging ASTs, the DebugTreeAdaptor manually calls create(Token child) and then plain becomeRoot(node, node) because it needs to trap calls to create, but it can't since it delegates to not inherits from the TreeAdaptor.
See Also