We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fedac2 commit 302565dCopy full SHA for 302565d
src/Generator/Utils/BlockGenerator.cs
@@ -65,7 +65,6 @@ public class Block : ITextGenerator
65
public List<Block> Blocks { get; set; }
66
67
private bool hasIndentChanged;
68
- private bool isSubBlock;
69
70
public Func<bool> CheckGenerate;
71
@@ -80,15 +79,14 @@ public Block(BlockKind kind)
80
79
Blocks = new List<Block>();
81
Text = new TextGenerator();
82
hasIndentChanged = false;
83
- isSubBlock = false;
84
}
85
86
public void AddBlock(Block block)
87
{
88
if (Text.StringBuilder.Length != 0 || hasIndentChanged)
89
90
91
- var newBlock = new Block { Text = Text.Clone(), isSubBlock = true };
+ var newBlock = new Block { Text = Text.Clone() };
92
Text.StringBuilder.Clear();
93
94
AddBlock(newBlock);
0 commit comments