removeComments function

List<String> removeComments(
  1. List<String> lines
)

Implementation

List<String> removeComments(List<String> lines) {
  return lines.where((c) => !isSingleLineComment(c)).toList();
}