Beispiel #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;
        }
Beispiel #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();
        }