applyCodeMacro function

String applyCodeMacro(
  1. File file,
  2. String content
)

Implementation

String applyCodeMacro(File file, String content) {
  var lines = content.split('\n');

  lines = removeGeneratedBlocks(lines, 'code');
  lines = _generateCodeBlocks(file, lines);

  return lines.join('\n');
}