Exemplo n.º 1
0
        public override AstNode Visit(ForEachStatement node)
        {
            // Push the scope.
            PushScope(node.GetScope());

            // Visit the children.
            VisitList(node.GetChildren());

            // Pop the scope.
            PopScope();

            return node;
        }
Exemplo n.º 2
0
        public override AstNode Visit(ForEachStatement node)
        {
            // Begin the node.
            builder.BeginNode(node);

            // Push the scope.
            PushScope(node.GetScope());

            // Visit the children.
            VisitList(node.GetChildren());

            // Pop the scope.
            PopScope();

            return builder.EndNode();
        }