removeGeneratedBlocks function
Implementation
List<String> removeGeneratedBlocks(List<String> lines, String command) {
var result = Lines();
for (var line in lines) {
result.add(line);
if (line.isMacroEnd(command)) {
result.discard();
} else if (line.isMacro(command)) {
result.accept();
}
}
return result.data();
}