コード例 #1
0
 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)));
 }
コード例 #2
0
 internal static string RemoveBlockComments(this string input, ICoreCounterFactory factory)
 {
     return(factory == null ? input : factory.RemoveBlockComments(input));
 }
コード例 #3
0
 public SourceCodeCounter(ICoreCounterFactory factory)
 {
     _factory = factory;
 }