Exemplo n.º 1
0
        private void GenerateStatementBlock(Block statement, TextWriter writer, CodeGeneratorOptions options)
        {
            if (statement == null) return;

            writer.WriteLine("BEGIN");
            using (new IndentHelper(writer))
            {
                foreach (var child in statement.Statements)
                {
                    GenerateCodeFromStatement(child, writer, options);
                }
            }
            writer.WriteLine("END");
        }
Exemplo n.º 2
0
 public void BlockConstructorTest1()
 {
     Statement statement = null; // TODO: Initialize to an appropriate value
     Block target = new Block(statement);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }