Rhino.Ast.Scope.GetStatements C# (CSharp) Method

GetStatements() public method

Returns a copy of the child list, with each child cast to an AstNode .
/// if any non- /// AstNode /// objects are /// in the child list, e.g. if this method is called after the code /// generator begins the tree transformation. ///
public GetStatements ( ) : IList
return IList
		public virtual IList<AstNode> GetStatements()
		{
			IList<AstNode> stmts = new List<AstNode>();
			Node n = GetFirstChild();
			while (n != null)
			{
				stmts.Add((AstNode)n);
				n = n.GetNext();
			}
			return stmts;
		}