Esempio n. 1
0
        private static void GenerateBlockStatement(ScriptGenerator generator, MemberSymbol symbol, BlockStatement statement) {
            ScriptTextWriter writer = generator.Writer;

            foreach (Statement s in statement.Statements) {
                GenerateStatement(generator, symbol, s);
            }
        }
        private Statement ProcessBlockStatement(BlockStatementNode node)
        {
            BlockStatement statement = new BlockStatement();

            _symbolTable.PushScope();

            foreach (StatementNode childStatementNode in node.Statements) {
                Statement childStatement = BuildStatement(childStatementNode);
                if (childStatement != null) {
                    statement.AddStatement(childStatement);
                }
            }

            _symbolTable.PopScope();

            return statement;
        }