4 using System.Collections.Generic;
6 using System.Runtime.Serialization.Formatters.Binary;
8 namespace SiliconStudio.Shaders.Ast
26 foreach (var children
in node.
Childrens())
29 foreach (var descendant
in children.Descendants())
31 yield
return descendant;
46 foreach (var children
in node.
Childrens())
49 foreach (var descendant
in children.DescendantsImpl())
51 yield
return descendant;
static IEnumerable< Node > Descendants(this Node node)
Get descendants for the specified node.
virtual IEnumerable< Node > Childrens()
Gets the child nodes.