Finds the first node of the specified type in the chain of children.

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

Syntax

C#
public static IASTNode FindTypeInChildren(
	IASTNode parent,
	int type
)
Visual Basic
Public Shared Function FindTypeInChildren ( _
	parent As IASTNode, _
	type As Integer _
) As IASTNode
Visual C++
public:
static IASTNode^ FindTypeInChildren(
	IASTNode^ parent, 
	int type
)

Parameters

parent
Type: NHibernate.Hql.Ast.ANTLR.Tree..::..IASTNode
The parent
type
Type: System..::..Int32
The type to find.

Return Value

The first node of the specified type, or null if not found.

See Also