internal static IEnumerable <string> Filter(this IEnumerable <string> data, ICoreCounterFactory factory) { return(data.Select(x => { var x2 = string.IsNullOrEmpty(x) ? string.Empty : factory == null ? x : factory.RemoveSingleComment(x); return string.IsNullOrEmpty(x2) ? string.Empty : factory == null ? x2 : factory.RemoveMiscThings(x2); }).Where(x => !string.IsNullOrEmpty(x))); }
internal static string RemoveBlockComments(this string input, ICoreCounterFactory factory) { return(factory == null ? input : factory.RemoveBlockComments(input)); }
public SourceCodeCounter(ICoreCounterFactory factory) { _factory = factory; }