Пример #1
0
        public static BodyNode Body(params AstNode[] children)
        {
            var block = new BodyNode(_nodeIndex++);

            if (children != null && children.Length > 0)
            {
                block.AddChildren(children);
            }
            return(block);
        }
Пример #2
0
        public override BlockExpression Visit(BodyNode body)
        {
            foreach (var c in body.Children)
            {
                Visit(c);

                if (FoundType)
                {
                    return(null);
                }
            }
            return(null);
        }