Esempio n. 1
0
        /// <inheritdoc />
        public void VisitHandlerBlock(HandlerBlock <TInstruction> block)
        {
            if (block.Prologue != null)
            {
                _listener.EnterPrologueBlock(block);
                block.Prologue.AcceptVisitor(this);
                _listener.ExitPrologueBlock(block);
            }

            _listener.EnterHandlerContents(block);
            block.Contents.AcceptVisitor(this);
            _listener.ExitHandlerContents(block);

            if (block.Epilogue != null)
            {
                _listener.EnterEpilogueBlock(block);
                block.Epilogue.AcceptVisitor(this);
                _listener.ExitEpilogueBlock(block);
            }
        }
Esempio n. 2
0
 /// <inheritdoc />
 public void ExitHandlerContents(HandlerBlock <TInstruction> block)
 {
 }
Esempio n. 3
0
 /// <inheritdoc />
 public void ExitEpilogueBlock(HandlerBlock <TInstruction> block)
 {
 }
Esempio n. 4
0
 /// <inheritdoc />
 public void EnterHandlerContents(HandlerBlock <TInstruction> block)
 {
     AppendIndentationString();
     _builder.AppendLine("code:");
 }
Esempio n. 5
0
 /// <inheritdoc />
 public void EnterEpilogueBlock(HandlerBlock <TInstruction> block)
 {
     AppendIndentationString();
     _builder.AppendLine("epilogue:");
 }