private static bool IsSupported(string fileName) { string extension = Path.GetExtension(fileName).ToLowerInvariant(); string[] allowed = new[] { ".js", ".css", ".html", ".htm", ".less", ".scss", ".coffee", ".iced", ".config", ".cs", "vb" }; return allowed.Contains(extension); }
protected override bool NotInterestedIn(object subject) { var interestedIn = new[] { typeof(Compilation), typeof(NamespaceSymbol), typeof(ComplexValueSymbol) }; return !(interestedIn.Contains(subject.GetType())) || base.NotInterestedIn(subject); }