IASTNode node = new ASTNode(ASTNodeType.FunctionDeclaration);
IASTNode argNode = new ASTNode(ASTNodeType.Argument); node.AddChild(argNode);
foreach (IASTNode childNode in node.Children) { Console.WriteLine(childNode.Type); }This code iterates through all the child nodes of the given node, and prints their types to the console. The IASTNode interface is part of the Roslyn package library, which is a set of open-source compilers and code analysis APIs for C# and VB.NET languages.