Determine if a given node (test) is contained anywhere in the subtree of another given node (fixture).

Namespace: NHibernate.Hql.Ast.ANTLR.Util
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static bool IsSubtreeChild(
	IASTNode fixture,
	IASTNode test
)
Visual Basic
Public Shared Function IsSubtreeChild ( _
	fixture As IASTNode, _
	test As IASTNode _
) As Boolean
Visual C++
public:
static bool IsSubtreeChild(
	IASTNode^ fixture, 
	IASTNode^ test
)

Parameters

fixture
Type: NHibernate.Hql.Ast.ANTLR.Tree..::..IASTNode
The node against which to be checked for children.
test
Type: NHibernate.Hql.Ast.ANTLR.Tree..::..IASTNode
The node to be tested as being a subtree child of the parent.

Return Value

True if child is contained in the parent's collection of children.

See Also