Exemple #1
0
        static internal string Uncomment(ParserType type, TextData data, Range range)
        {
            switch (type)
            {
            case ParserType.CSharp: return(CSharpVisitor.Uncomment(data, range));

            case ParserType.HTML:
            case ParserType.XML:
                return(HTMLVisitor.Uncomment(data, range));

            default: throw new Exception("Cannot comment this content type");
            }
        }