Esempio n. 1
0
        internal override CodeBlock WriteDebugCode(IMethodSymbolGenerator symbolGenerator)
        {
            var begin = symbolGenerator.GetCurrentPosition();

            symbolGenerator.Write("{");
            symbolGenerator.EnterScope();

            for (int index = 0; index < _expressions.Length; index++)
            {
                symbolGenerator.Write(_expressions[index]);
                if (index + 1 < _expressions.Length)
                {
                    symbolGenerator.WriteStatementEnd("");
                }
            }

            var end = symbolGenerator
                      .LeaveScope()
                      .WriteStatementEnd("}");

            return(begin.BlockTo(end));
        }