Example #1
0
        /// <inheritdoc />
        public void ExitScopeBlock(ScopeBlock <TInstruction> block)
        {
            _indentationLevel--;

            AppendIndentationString();
            _builder.Append('}');
            _builder.AppendLine();
        }
Example #2
0
        /// <inheritdoc />
        public void EnterScopeBlock(ScopeBlock <TInstruction> block)
        {
            AppendIndentationString();
            _builder.Append('{');
            _builder.AppendLine();

            _indentationLevel++;
        }
Example #3
0
 /// <inheritdoc />
 public void VisitScopeBlock(ScopeBlock <TInstruction> block)
 {
     _listener.EnterScopeBlock(block);
     foreach (var innerBlock in block.Blocks)
     {
         innerBlock.AcceptVisitor(this);
     }
     _listener.ExitScopeBlock(block);
 }
Example #4
0
        /// <inheritdoc />
        public void VisitScopeBlock(ScopeBlock <TInstruction> block)
        {
            _listener.EnterScopeBlock(block);
            for (int i = 0; i < block.Blocks.Count; i++)
            {
                block.Blocks[i].AcceptVisitor(this);
            }

            _listener.ExitScopeBlock(block);
        }
Example #5
0
 /// <inheritdoc />
 public void ExitScopeBlock(ScopeBlock <TInstruction> block) => CloseScope();
Example #6
0
 /// <inheritdoc />
 public void EnterScopeBlock(ScopeBlock <TInstruction> block) => OpenScope();