Exemplo n.º 1
0
        static internal string Comment(ParserType type, TextData data, Range range)
        {
            switch (type)
            {
            case ParserType.CSharp: return(CSharpVisitor.Comment(data, range));

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

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