Esempio n. 1
0
        /// <inheritdoc />
        public void ExitScopeBlock(ScopeBlock <TInstruction> block)
        {
            _indentationLevel--;

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

            _indentationLevel++;
        }
Esempio n. 3
0
 /// <inheritdoc />
 public void VisitScopeBlock(ScopeBlock <TInstruction> block)
 {
     _listener.EnterScopeBlock(block);
     foreach (var innerBlock in block.Blocks)
     {
         innerBlock.AcceptVisitor(this);
     }
     _listener.ExitScopeBlock(block);
 }
Esempio n. 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);
        }
Esempio n. 5
0
 /// <inheritdoc />
 public void ExitScopeBlock(ScopeBlock <TInstruction> block) => CloseScope();
Esempio n. 6
0
 /// <inheritdoc />
 public void EnterScopeBlock(ScopeBlock <TInstruction> block) => OpenScope();