Exemplo n.º 1
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     foreach (var line in Lines(comment.Comment))
     {
         writer.Indent();
         writer.WriteComment($"// {line}");
         writer.Terminate();
     }
 }
Exemplo n.º 2
0
        public void CfAbsynComment_Multiline()
        {
            formatter.Indentation = 1;
            var cmt = new AbsynLineComment(
                @"First abstract syntax comment line
Second abstract syntax comment line");

            cmt.Accept(cf);
            var expected =
                @" // First abstract syntax comment line
 // Second abstract syntax comment line
";

            Assert.AreEqual(expected, sw.ToString());
        }
Exemplo n.º 3
0
 public AbsynStatement VisitLineComment(AbsynLineComment comment)
 {
     return(comment);
 }
Exemplo n.º 4
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     stms.Add(comment);
 }
Exemplo n.º 5
0
 public bool VisitLineComment(AbsynLineComment comment)
 {
     return(false);
 }
Exemplo n.º 6
0
 public void VisitLineComment(AbsynLineComment comment)
 {
     writer.WriteComment("// " + comment.Comment);
     writer.Terminate();
 }